mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-10 07:12:07 +00:00
parent
d56dc492c9
commit
8b9a4ab8e4
1 changed files with 9 additions and 4 deletions
|
@ -438,7 +438,11 @@ void GL4_ShutdownContext()
|
|||
{
|
||||
if(context)
|
||||
{
|
||||
#ifdef USE_SDL3
|
||||
SDL_GL_DestroyContext(context);
|
||||
#else
|
||||
SDL_GL_DeleteContext(context);
|
||||
#endif
|
||||
context = NULL;
|
||||
}
|
||||
}
|
||||
|
@ -452,12 +456,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