From 19a119417c0a437fbe3243ca42d2a7d3fa9443b9 Mon Sep 17 00:00:00 2001 From: Daniel Gibson Date: Sun, 27 Oct 2024 16:39:24 +0100 Subject: [PATCH] Fix last commit (had SDL2 and SDL3 code switched in one case) fix #1159 --- src/client/refresh/gl1/gl1_sdl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/refresh/gl1/gl1_sdl.c b/src/client/refresh/gl1/gl1_sdl.c index 93144656..c061b6d2 100644 --- a/src/client/refresh/gl1/gl1_sdl.c +++ b/src/client/refresh/gl1/gl1_sdl.c @@ -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;