Fix last commit (had SDL2 and SDL3 code switched in one case)

fix #1159
This commit is contained in:
Daniel Gibson 2024-10-27 16:39:24 +01:00
parent 07ee830712
commit 19a119417c

View file

@ -105,9 +105,9 @@ int RI_PrepareForWindow(void)
SDL_GL_SetAttribute(SDL_GL_ACCELERATED_VISUAL, 1);
#ifdef USE_SDL3
if (SDL_GL_SetAttribute(SDL_GL_STENCIL_SIZE, 8) == 0)
#else
if (SDL_GL_SetAttribute(SDL_GL_STENCIL_SIZE, 8))
#else
if (SDL_GL_SetAttribute(SDL_GL_STENCIL_SIZE, 8) == 0)
#endif
{
gl_state.stencil = true;