mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-10 07:12:07 +00:00
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:
parent
e5ee2a74a5
commit
d50408ff0b
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue