]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - vid_wgl.c
cd audio now tied to sound system
[xonotic/darkplaces.git] / vid_wgl.c
index 358993b3d737a4c535707f02f62553544e969cdf..ac5dd9dca7727652a30462999999abcb36d6fd00 100644 (file)
--- a/vid_wgl.c
+++ b/vid_wgl.c
@@ -722,7 +722,7 @@ void VID_Init(void)
        IN_Init();
 }
 
-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;
        HDC hdc;
@@ -759,7 +759,7 @@ int VID_InitMode (int fullscreen, int width, int height, int bpp, int stencil)
                Sys_Error("VID_InitMode called when video is already initialised\n");
 
        // if stencil is enabled, ask for alpha too
-       if (stencil)
+       if (bpp >= 32)
        {
                pfd.cStencilBits = 8;
                pfd.cAlphaBits = 8;