You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 2, 2019. It is now read-only.
I'm very close to getting nuklear to compile out to a HTML5 & JS application using Emscript and the sdl_opengl3 demo file. I'm only running into an issue with emcc with glMapBuffer() and glUnmapBuffer(). I don't think they exist in GLES or WebGL, and that's what's causing the issue. Is there something else I could swap them out with?
The text was updated successfully, but these errors were encountered:
Agreed with @dumblob , cwkx's solution works. I used it in my Nuklear+ library ( nuklear_sdl_gles2.h file ). It works on Emscripten, Linux and Android. Also, it's pure OpenGL ES2, does not use VAO extension. I will PR it as demo here some later.
So:
Rewrite the shaders
Remove some glBindVertexArray(0);
Replace glMapBuffer with malloc, and glUnmapBuffer with glBufferSubData+free.
I'm very close to getting nuklear to compile out to a HTML5 & JS application using Emscript and the
sdl_opengl3
demo file. I'm only running into an issue withemcc
withglMapBuffer()
andglUnmapBuffer()
. I don't think they exist in GLES or WebGL, and that's what's causing the issue. Is there something else I could swap them out with?The text was updated successfully, but these errors were encountered: