mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-01-07 05:43:18 +00:00
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:
committed by
Anonymous Maarten
parent
41532e84cb
commit
031dc0743f
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user