From e47529ab9ce6656c4c9c48193ce5476e15071433 Mon Sep 17 00:00:00 2001 From: Yan Date: Fri, 25 Jul 2025 12:22:09 +0200 Subject: [PATCH] Fix gl_context declared type The field gl_context is initialized from SDL_GL_CreateContext(), which returns a raw SDL_GLContext, not a pointer. The type mismatch was silently ignored by SDL2 because SDL_GLContext was defined as an alias to `void *` (in SDL3, it is instead an alias to `struct SDL_GLContextState *`, so compilation fails). Refs #3895 PR #6259 Signed-off-by: Romain Vimont --- app/src/display.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/display.h b/app/src/display.h index 4de9b0a9..49110994 100644 --- a/app/src/display.h +++ b/app/src/display.h @@ -22,7 +22,7 @@ struct sc_display { struct sc_opengl gl; #ifdef SC_DISPLAY_FORCE_OPENGL_CORE_PROFILE - SDL_GLContext *gl_context; + SDL_GLContext gl_context; #endif bool mipmaps;