SDL3: Changes for latest master

This commit is contained in:
atsb 2024-08-17 07:21:51 +02:00
parent 29595b02f8
commit 82e397ae92

View file

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