SDL3: Changes for latest master

82e397ae92
This commit is contained in:
atsb 2024-08-17 07:21:51 +02:00 committed by Denis Pauk
parent d56dc492c9
commit 8b9a4ab8e4

View file

@ -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
}