mirror of
https://github.com/yquake2/ref_gl4.git
synced 2024-11-14 09:00:32 +00:00
SDL3: Changes for latest master
This commit is contained in:
parent
29595b02f8
commit
82e397ae92
1 changed files with 10 additions and 5 deletions
|
@ -454,7 +454,11 @@ void GL4_ShutdownContext()
|
|||
{
|
||||
if(context)
|
||||
{
|
||||
#ifdef USE_SDL3
|
||||
SDL_GL_DestroyContext(context);
|
||||
#else
|
||||
SDL_GL_DeleteContext(context);
|
||||
#endif
|
||||
context = NULL;
|
||||
}
|
||||
}
|
||||
|
@ -468,12 +472,13 @@ void GL4_ShutdownContext()
|
|||
int GL4_GetSDLVersion()
|
||||
{
|
||||
#ifdef USE_SDL3
|
||||
SDL_Version ver;
|
||||
int ver = SDL_GetVersion();
|
||||
|
||||
return ver;
|
||||
#else
|
||||
SDL_version ver;
|
||||
#endif
|
||||
|
||||
SDL_VERSION(&ver);
|
||||
|
||||
return ver.major;
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue