From fffaf122df3edfb15ab22a9db48f9160b0855990 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Mon, 10 Nov 2025 16:47:38 -0800 Subject: [PATCH] Added temporary workaround for failing Emscripten test --- test/testautomation_render.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/testautomation_render.c b/test/testautomation_render.c index b6eeb35aad..f4cb02827e 100644 --- a/test/testautomation_render.c +++ b/test/testautomation_render.c @@ -2134,6 +2134,11 @@ static int SDLCALL render_testColorspaceLinear(void *arg) SDL_DestroyRenderer(renderer); props = SDL_CreateProperties(); +#ifdef SDL_PLATFORM_EMSCRIPTEN + // Something about falling back to the software renderer and failing causes window surface updates to fail in video_getWindowSurface() + // Adding this as a workaround to prevent software fallback until we figure this out. + SDL_SetStringProperty(props, SDL_PROP_RENDERER_CREATE_NAME_STRING, "opengles2"); +#endif SDL_SetPointerProperty(props, SDL_PROP_RENDERER_CREATE_WINDOW_POINTER, window); SDL_SetNumberProperty(props, SDL_PROP_RENDERER_CREATE_OUTPUT_COLORSPACE_NUMBER, SDL_COLORSPACE_SRGB_LINEAR); renderer = SDL_CreateRendererWithProperties(props);