> On Jul 19, 2019, at 17:38, キャロウ マーク <[email protected]> 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?
> 

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);
#endif

    pswMainWindow = SDL_CreateWindow(
                        szName,
                        SDL_WINDOWPOS_UNDEFINED,
                        SDL_WINDOWPOS_UNDEFINED,
                        w_width, w_height,
                        SDL_WINDOW_OPENGL | SDL_WINDOW_RESIZABLE
                    );



-- 
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/2922282D-7490-4A6F-B0AC-F1687B7D8B26%40callow.im.

Attachment: signature.asc
Description: Message signed with OpenPGP

Reply via email to