Bump SDL 3 support to the latest preview, SDL 3.1.2.

SDL 3.1.1 -> 3.1.2 brings another round of API changes. Only one of them
is relevant for us: the SDL_RENDERER_ACCELERATED flag was removed.
This commit is contained in:
Yamagi 2024-05-05 09:37:36 +02:00
parent e5ee2a74a5
commit d50408ff0b

View file

@ -1910,7 +1910,7 @@ RE_InitContext(void *win)
if (r_vsync->value) if (r_vsync->value)
{ {
#ifdef USE_SDL3 #ifdef USE_SDL3
renderer = SDL_CreateRenderer(window, NULL, SDL_RENDERER_ACCELERATED | SDL_RENDERER_PRESENTVSYNC); renderer = SDL_CreateRenderer(window, NULL, SDL_RENDERER_PRESENTVSYNC);
#else #else
renderer = SDL_CreateRenderer(window, -1, SDL_RENDERER_ACCELERATED | SDL_RENDERER_PRESENTVSYNC); renderer = SDL_CreateRenderer(window, -1, SDL_RENDERER_ACCELERATED | SDL_RENDERER_PRESENTVSYNC);
#endif #endif
@ -1918,7 +1918,7 @@ RE_InitContext(void *win)
else else
{ {
#ifdef USE_SDL3 #ifdef USE_SDL3
renderer = SDL_CreateRenderer(window, NULL, SDL_RENDERER_ACCELERATED); renderer = SDL_CreateRenderer(window, NULL, 0);
#else #else
renderer = SDL_CreateRenderer(window, -1, SDL_RENDERER_ACCELERATED); renderer = SDL_CreateRenderer(window, -1, SDL_RENDERER_ACCELERATED);
#endif #endif