Skip to content

Commit

Permalink
Fix last commit (had SDL2 and SDL3 code switched in one case)
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielGibson committed Oct 27, 2024
1 parent 07ee830 commit 19a1194
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/client/refresh/gl1/gl1_sdl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 19a1194

Please sign in to comment.