Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Firefox WebGL warnings in console #5912

Closed
thw0rted opened this issue Oct 18, 2017 · 2 comments
Closed

Firefox WebGL warnings in console #5912

thw0rted opened this issue Oct 18, 2017 · 2 comments

Comments

@thw0rted
Copy link
Contributor

When I load the basic viewer in Firefox (56.0, 64-bit, Ubuntu 16.04), I see repeated errors in the console:

Error: WebGL warning: texImage2D: Alpha-premult and y-flip are deprecated for non-DOM-Element uploads.

When I try to work with billboards, I also see

Error: WebGL warning: texSubImage2D: Texture has not been initialized prior to a partial upload, forcing the browser to clear it. This may be slow.

and

Error: WebGL warning: texSubImage2D: This operation requires zeroing texture data. This is slow.

In my (much more complex) application, I get tons of these warnings, until Firefox just gives up and stops warning. I don't know if this is actually having a performance impact; Chromium does do a few FPS better than Firefox but that could be for other reasons.

(I have seen #1317 but if you click through to the Bugzilla link, they think that issue has been fixed, and would only account for one of the 3 warning types.)

@hpinkos
Copy link
Contributor

hpinkos commented Oct 18, 2017

Thanks @thw0rted! I see this on my windows machine as well.

@lilleyse do you know what this might be from?

@pjcozzi
Copy link
Contributor

pjcozzi commented Oct 18, 2017

Good catch, thanks @thw0rted!

I suspect a new version WebGL 1.0.x version make these deprecations:

Error: WebGL warning: texImage2D: Alpha-premult and y-flip are deprecated for non-DOM-Element uploads.

The other errors are like due to not calling texImage2D before texSubImage2D - which Cesium should do everywhere.

@bagnell do you want to look at this since @lilleyse has his hands full with your PRs. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants