Hi all, this is code that worked on earlier versions of emscriptem (1.4.0).
Proof here:
https://www.robotwantskitty.com/web/This
is an older game and uses OpenGL 1.2 + SDL with the old pipeline. I recently
upgraded to the newest emscriptem (3.1.5) and, using the same compile
lines, I get nothing rendering, and the console window is just printing out"DrawElements doesn't actually prepareClientAttributes properly" repeatedly (this is not text that I have anywhere in my code).
OpenGL gives no other indicators of what might be going wrong. Since it used to work on an earlier version of emscriptem, is there anything special I need to do on the newer builds for GL1 compatibility?
I am using these flags:
-s LEGACY_GL_EMULATION=1 -s GL_FFP_ONLY=1
I thought it might be an issue of versioning, so I tried added this:
SDL_GL_SetAttribute( SDL_GL_CONTEXT_MAJOR_VERSION, 1 );
SDL_GL_SetAttribute( SDL_GL_CONTEXT_MINOR_VERSION, 2 );
...but when I add that it just tells me it can't create an OpenGL context.
Any ideas what the next thing I could check? Why would it break
Thanks in advance for any help you can give!