On Jul 19, 2019, at 17:38, キャロウ マーク <git...@callow.im> wrote:I have an app that uses OpenGL ES3 and SDL2. When I try to run it I get "Could not create GLES window surface” which is coming from SDL. The app works fine natively on iOS, macOS, Linux and Windows. I’m having trouble getting source map debugging set up so am struggling a bit to figure out what’s wrong. Does anyone have any thoughts?
On Jul 19, 2019, at 18:40, キャロウ マーク <git...@callow.im> wrote:Here is the SDL_CreateWindow call that is failing.SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_ES);SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 3);SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 0);SDL_GL_SetAttribute(SDL_GL_FRAMEBUFFER_SRGB_CAPABLE, 1);#if defined(DEBUG)SDL_GL_SetAttribute(SDL_GL_CONTEXT_FLAGS, SDL_GL_CONTEXT_DEBUG_FLAG);#endifpswMainWindow = SDL_CreateWindow(szName,SDL_WINDOWPOS_UNDEFINED,SDL_WINDOWPOS_UNDEFINED,w_width, w_height,SDL_WINDOW_OPENGL | SDL_WINDOW_RESIZABLE);
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)
--
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-disc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/emscripten-discuss/DEA50B6B-ACD8-4F1C-AFFF-E2A8944435C2%40callow.im.
On Jul 22, 2019, at 22:22, Gabriel Cuvillier <gabriel....@gmail.com> 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)
On Jul 22, 2019, at 22:22, Gabriel Cuvillier <gabriel....@gmail.com> wrote:
(or put it before the calls to PROFILE_MASK/MAJOR/MINOR)