mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-08-16 15:29:22 +00: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:
parent
939c8e7f68
commit
e47529ab9c
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ struct sc_display {
|
||||||
|
|
||||||
struct sc_opengl gl;
|
struct sc_opengl gl;
|
||||||
#ifdef SC_DISPLAY_FORCE_OPENGL_CORE_PROFILE
|
#ifdef SC_DISPLAY_FORCE_OPENGL_CORE_PROFILE
|
||||||
SDL_GLContext *gl_context;
|
SDL_GLContext gl_context;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
bool mipmaps;
|
bool mipmaps;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue