Hi, I am trying to build an OpenGL ES 2 app with imgui, but get error: use of undeclared identifier 'glBindVertexArrayOES'
Looking in backends/imgui_impl_opengl3.cpp, it seems it is attempting to turn them on, claiming emscripten uses an extension: // Vertex arrays are not supported on ES2/WebGL1 unless Emscripten, which uses an extension #ifndef IMGUI_IMPL_OPENGL_ES2 #define IMGUI_IMPL_OPENGL_USE_VERTEX_ARRAY #elif defined(__EMSCRIPTEN__) #define IMGUI_IMPL_OPENGL_USE_VERTEX_ARRAY #define glBindVertexArray glBindVertexArrayOES #define glGenVertexArrays glGenVertexArraysOES #define glDeleteVertexArrays glDeleteVertexArraysOES #define GL_VERTEX_ARRAY_BINDING GL_VERTEX_ARRAY_BINDING_OES #endif but it seems those extensions are not found. I'm compiling with -sUSE_SDL=2 -sFULL_ES2 I'd be grateful for suggestions. Thanks, Luke -- You received this message because you are subscribed to the Google Groups "emscripten-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-discuss+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/emscripten-discuss/769c91b2-2b4f-4d3c-927d-aec70edcca24n%40googlegroups.com.