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:
1 parent
41532e84cb
commit
031dc0743f
3 files changed
+10
-9
No files matched your search
@@ -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