Merge remote-tracking branch 'yquake2/master'

This commit is contained in:
Denis Pauk 2024-10-27 21:40:35 +02:00
commit 61bba6c6fd

View file

@ -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;