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 authored and Anonymous Maarten committed 2024-06-15 01:43:22 +02:00
1 parent 41532e84cb
commit 031dc0743f
3 files changed
+10 -9

No files matched your search

+1 -1
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.