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
Fix error in Web builds that resulting in 2D objects not drawing in the GLES3 backend #67402
Conversation
objects not drawing in the GLES3 backend. Issue came from not binding a light UBO when using the DISABLE_LIGHTING code path
Thanks! |
Does this commit really solve the issue? I checked out the current master branch (276ab5b), build the editor and the web export template from it and tried to export a minimal project to web. Minimal project Steps to reproduce
EDIT: Changed release web export build to debug. |
@AntonioDell It actually fixed the issue. I saw you just compiled a release template. Try debug template again. |
I will try again, thanks for the feedback! |
@clayjohn Sorry to bother you, but I cannot seem to get it working.
But the result is the same. Did I miss a step? @zaevi I noticed that too, tried again with a debug template and edited my comment. But sadly I couldn't make it work. |
@AntonioDell do you get any errors reported in the console? |
@clayjohn Thank you for your time! EDIT: In chrome it works!! Just tried it and it works! Strange that firefox doesn't though... Maybe there are some different preferences set regarding webgl? I will investigate this. |
I can confirm the problem, that some Firefox-versions do not display the content correctly. On Debian 11 with Firefox 91.13.0esr I also get the |
Fixes: #67392
The issue came from not binding a light UBO when using the DISABLE_LIGHTING code path
I also removed the glClientWaitSync call as it was resulting in an error as well.