mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-12-17 05:24:19 +01:00
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 <https://github.com/Genymobile/scrcpy/pull/3895> PR #6259 <https://github.com/Genymobile/scrcpy/pull/6259> Signed-off-by: Romain Vimont <rom@rom1v.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user