From 652c5fd009d060d2e2b91507b0cbb1cf63c76b44 Mon Sep 17 00:00:00 2001 From: havoc Date: Wed, 3 Dec 2003 02:00:15 +0000 Subject: [PATCH] fix a severe bug with 16bit modes (VID_InitMode in vid_glx.c was taking a stencil parameter which does not exist, and thus stencil was in general always on even in 16bit) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3676 d7cf8633-e32d-0410-b094-e92efae38249 --- vid_glx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vid_glx.c b/vid_glx.c index 000156b2..750fc028 100644 --- a/vid_glx.c +++ b/vid_glx.c @@ -662,7 +662,7 @@ void VID_BuildGLXAttrib(int *attrib, int stencil) *attrib++ = None; } -int VID_InitMode(int fullscreen, int width, int height, int bpp, int stencil) +int VID_InitMode(int fullscreen, int width, int height, int bpp) { int i; int attrib[32]; @@ -712,7 +712,7 @@ int VID_InitMode(int fullscreen, int width, int height, int bpp, int stencil) return false; } - VID_BuildGLXAttrib(attrib, stencil); + VID_BuildGLXAttrib(attrib, bpp == 32); visinfo = qglXChooseVisual(vidx11_display, vidx11_screen, attrib); if (!visinfo) { -- 2.39.2