Missing OpenGL ES 2 extension function aliases #3471
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Since the WEBGL_draw_buffers WebGL extension is based on EXT_draw_buffers ES2 extension and ANGLE_instanced_arrays WebGL extension is based on ANGLE_instanced_arrays ES2 extension, I thought it would make sense to expose also functions that are present in ES2 extension headers:
This should also partially fix #2510, except for additions to the headers (I'm using my own headers generated using flextGL so that doesn't bother me).
I looked around the code to discover what's the actual policy for extension function suffixes, but it seems that all suffixes of given function are always present without checking whether we are on legacy GL emulation, WebGL-friendly subset or else, so I just added these to existing aliases.
Note: if I understand correctly, the
WEBGL_draw_buffers
andANGLE_instanced_arrays
extensions shouldn't be exposed on WebGL 2 (because the above functions are then in core), thus aliases with these suffixes also shouldn't be present for WebGL 2, but maybe that's not a problem here.Thanks!