diff --git a/engine/gl/gl_vidlinuxglx.c b/engine/gl/gl_vidlinuxglx.c index fc2b0f9ae..0346a97a0 100644 --- a/engine/gl/gl_vidlinuxglx.c +++ b/engine/gl/gl_vidlinuxglx.c @@ -957,6 +957,7 @@ qboolean GLVID_Init (rendererstate_t *info, unsigned char *palette) InitSig(); // trap evil signals GL_Init(&GLX_GetSymbol); + qglGetIntegerv(GL_STENCIL_BITS, &gl_canstencil); GLVID_SetPalette(palette); GLVID_ShiftPalette(palette);