-
-
Notifications
You must be signed in to change notification settings - Fork 21.6k
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
Print a warning when importing a repeating NPOT texture in a GLES2 project #48817
Print a warning when importing a repeating NPOT texture in a GLES2 project #48817
Conversation
Could possibly mention HTML5 as well as GLES2. It isn't necessary for non-wrapping textures as the limitation doesn't apply there. I can't remember the exact details of why it doesn't detect npot support on HTML5, it seems to run the detection for the extension but maybe it doesn't report correctly on that platform. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure what the CI failure is about, but yes this should be a big improvement as we continue to get issues posted about npot textures.
I don't think this should be that intrusive if it only happens on import. I suspect most users once they have seen this warning a couple of times, they will get the idea, so we may not need a runtime warning (when you start a project in GLES2 with npot wrapping textures).
But maybe you could use |
4fd6e85
to
0581be7
Compare
…oject Repeating NPOT textures are not guaranteed to be displayed correctly in GLES2, since the specification does not mandate support for it. The warning is also displayed in GLES3 projects that are configured to allow falling back to GLES2.
0581be7
to
20f7928
Compare
I updated the PR to use |
Thanks! |
Cherry-picked for 3.3.2. |
Repeating NPOT textures are not guaranteed to be displayed correctly in GLES2, since the specification does not mandate support for it. The warning is displayed for both repeating and mirrored repeating textures.
The warning is also displayed in GLES3 projects that are configured to allow falling back to GLES2.
This closes #48807.
Testing project: test_npot.zip
Questions