Skip to content

Please add ANGLE_instanced_arrays support to GLES2 wrapper #2510

Closed
@floooh

Description

@floooh

The GLES2 wrapper seems to be missing support for ANGLE_instanced_arrays:

  • the GLES2 headers are missing the following prototypes:
    glVertexAttribDivisorANGLE()
    glDrawElementsInstancedANGLE()
    glDrawArraysInstancedANGLE()
  • library_gl.js only seems to have support for the instancing functions in the desktop OpenGL wrapper

I tried copying the latest GL headers from here (http://www.khronos.org/registry/gles/api/GLES2/) to emscripten/system/include/GLES2, this worked for compilation, but the linker failed to find the ANGLE-postfixed GLES2 functions (since they are missing in library_gl.js).

Since WebGL is closer to GLES2 then Desktop GL I'd like to continue using the GLES2 headers and emulation wrapper for the emscripten port, which would require support for ANGLE_instanced_arrays though.

Thanks!
-Floh.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions