mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-01-31 21:30:36 +00:00
Fix last commit (had SDL2 and SDL3 code switched in one case)
fix #1159
This commit is contained in:
parent
07ee830712
commit
19a119417c
1 changed files with 2 additions and 2 deletions
|
@ -105,9 +105,9 @@ int RI_PrepareForWindow(void)
|
||||||
SDL_GL_SetAttribute(SDL_GL_ACCELERATED_VISUAL, 1);
|
SDL_GL_SetAttribute(SDL_GL_ACCELERATED_VISUAL, 1);
|
||||||
|
|
||||||
#ifdef USE_SDL3
|
#ifdef USE_SDL3
|
||||||
if (SDL_GL_SetAttribute(SDL_GL_STENCIL_SIZE, 8) == 0)
|
|
||||||
#else
|
|
||||||
if (SDL_GL_SetAttribute(SDL_GL_STENCIL_SIZE, 8))
|
if (SDL_GL_SetAttribute(SDL_GL_STENCIL_SIZE, 8))
|
||||||
|
#else
|
||||||
|
if (SDL_GL_SetAttribute(SDL_GL_STENCIL_SIZE, 8) == 0)
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
gl_state.stencil = true;
|
gl_state.stencil = true;
|
||||||
|
|
Loading…
Reference in a new issue