mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-06 14:43:20 +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:
parent
41532e84cb
commit
031dc0743f
3 changed files with 10 additions and 9 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue