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
OpenGL ES 3.0 / core desktop GL way of retrieving extension information #3472
Comments
Your comments are accurate, this is a feature we haven't implemented yet. For GLES3/WebGL2 support we will have to implement that form of extension querying. However this will not be available when targeting GLES2/WebGL1, although that is probably not a concern for you? |
I still need to use |
Bump, I'm running into the same issue. Would prefer to have |
@gouletr: Are you building a WebGL2/GLES3 targeting application? Native GLES2/WebGL1 does not have the function |
Yes, we are targeting WebGL2/GLES3. |
@juj Thanks for the fix! I will use it right away! 👍 |
@juj Awesome! Thank you! 👍 |
This was merged in the above PR. |
In OpenGL ES 3.0 (and GL 3.0+) it is possible to retrieve extension list like this:
Looking at the current code in library_gl.js it looks like WebGL is indeed providing the extension list as an array, but the code then joins it to one large string to support ES2/GL2.1 usage via
glGetString(GL_EXTENSIONS)
. Would it be possible to support also the above usage for better compatibility with ES 3.0 code that's being ported to WebGL 2?One reason
glGetStringi()
is used instead of the originalglGetString(GL_EXTENSIONS)
is that the original way is no longer available in core desktop OpenGL and thus using it harms portability.Thank you!
The text was updated successfully, but these errors were encountered: