From: havoc Date: Wed, 3 Dec 2003 02:00:15 +0000 (+0000) Subject: fix a severe bug with 16bit modes (VID_InitMode in vid_glx.c was taking a stencil... X-Git-Tag: xonotic-v0.1.0preview~6245 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=652c5fd009d060d2e2b91507b0cbb1cf63c76b44;p=xonotic%2Fdarkplaces.git 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 --- 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) {