]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix a severe bug with 16bit modes (VID_InitMode in vid_glx.c was taking a stencil...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 3 Dec 2003 02:00:15 +0000 (02:00 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 3 Dec 2003 02:00:15 +0000 (02:00 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3676 d7cf8633-e32d-0410-b094-e92efae38249

vid_glx.c

index 000156b2f64c542229a9adb64f71b389f97fff29..750fc028eb37840f1bb422512c9421cde2104eaf 100644 (file)
--- 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)
        {