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)
|
if(context)
|
||||||
{
|
{
|
||||||
SDL_GL_DeleteContext(context);
|
#ifdef USE_SDL3
|
||||||
|
SDL_GL_DestroyContext(context);
|
||||||
|
#else
|
||||||
|
SDL_GL_DeleteContext(context);
|
||||||
|
#endif
|
||||||
context = NULL;
|
context = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -452,12 +456,13 @@ void GL4_ShutdownContext()
|
||||||
int GL4_GetSDLVersion()
|
int GL4_GetSDLVersion()
|
||||||
{
|
{
|
||||||
#ifdef USE_SDL3
|
#ifdef USE_SDL3
|
||||||
SDL_Version ver;
|
int ver = SDL_GetVersion();
|
||||||
|
|
||||||
|
return ver;
|
||||||
#else
|
#else
|
||||||
SDL_version ver;
|
SDL_version ver;
|
||||||
#endif
|
|
||||||
|
|
||||||
SDL_VERSION(&ver);
|
SDL_VERSION(&ver);
|
||||||
|
|
||||||
return ver.major;
|
return ver.major;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue