Use an opaque struct typedef for SDL_GLContext

Using a struct typedef instead of a void pointer results in extra C typechecks
This commit is contained in:
Anonymous Maarten
2024-06-14 19:56:33 +02:00
committed by Anonymous Maarten
parent 41532e84cb
commit 031dc0743f
3 changed files with 10 additions and 9 deletions

View File

@@ -200,7 +200,7 @@ typedef enum SDL_FlashOperation
*
* \sa SDL_GL_CreateContext
*/
typedef void *SDL_GLContext;
typedef struct SDL_GLContextState *SDL_GLContext;
/**
* Opaque EGL types.