SDL/src/video/emscripten
Robert Müller 7e1d4f843c Emscripten: fix incorrect error check for WebGL context creation
According to the documentation and testing the `emscripten_webgl_create_context` function returns `0` on error as oppposed to a negative number. This was causing the error message to be empty when the later `emscripten_webgl_make_context_current` call fails given the invalid context.

See https://emscripten.org/docs/api_reference/html5.h.html#c.emscripten_webgl_create_context
2025-04-24 11:25:58 -07:00
..
SDL_emscriptenevents.c Move global event handlers to SDL_VideoInit 2025-04-04 10:21:12 -07:00
SDL_emscriptenevents.h Move global event handlers to SDL_VideoInit 2025-04-04 10:21:12 -07:00
SDL_emscriptenframebuffer.c Updated copyright for 2025 2025-01-01 07:45:52 -08:00
SDL_emscriptenframebuffer.h Updated copyright for 2025 2025-01-01 07:45:52 -08:00
SDL_emscriptenmouse.c Handle global mouse state for Emscripten (#12669) 2025-04-02 07:21:21 -07:00
SDL_emscriptenmouse.h Updated copyright for 2025 2025-01-01 07:45:52 -08:00
SDL_emscriptenopengles.c Emscripten: fix incorrect error check for WebGL context creation 2025-04-24 11:25:58 -07:00
SDL_emscriptenopengles.h Updated copyright for 2025 2025-01-01 07:45:52 -08:00
SDL_emscriptenvideo.c Add STRING suffix to SDL_PROP_WINDOW_CREATE_EMSCRIPTEN_* string properties 2025-04-04 13:38:02 -07:00
SDL_emscriptenvideo.h emscripten: add window properties for canvas ID and keyboard element (#12509) 2025-03-14 09:39:46 -07:00