> On Jul 22, 2019, at 22:22, Gabriel Cuvillier <[email protected]> > wrote: > > Hi, > > I had a similar issue, and it is probably a bug: > > With the SDL2 port to Emscripten, most > SDL_GL_SetAttribute(SDL_GL_CONTEXT_FLAGS*) calls after > SDL_GL_CONTEXT_PROFILE_MASK and MAJOR/MINOR will make things fail... > > So you need to remove SDL_GL_CONTEXT_FLAGS call, and probably the > SDL_GL_FRAMEBUFFER_SRGB_CAPABLE (or put it before the calls to > PROFILE_MASK/MAJOR/MINOR) >
Thank you. I removed them for Emscripten builds. WebGL doesn’t support SRGB
drawing buffers anyway so removal is no loss. But I may try again with a
different order so my code will be the same across platforms.
Regards
-Mark
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/emscripten-discuss/9CD7F698-07E2-42D4-B3D4-8CCED46389A3%40callow.im.
signature.asc
Description: Message signed with OpenPGP
