]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
disable VorteX's multisample setup code because it crashes vid_restart
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 18 May 2011 13:32:46 +0000 (13:32 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 18 May 2011 13:32:46 +0000 (13:32 +0000)
and looks like it does not work anyway

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11155 d7cf8633-e32d-0410-b094-e92efae38249

vid_shared.c

index fd5cbc71bc5365d7a64769bea3f90ec851107141..9db677a144ff800959fee6c63c6fc68660b4fc34 100644 (file)
@@ -1743,6 +1743,8 @@ int VID_Mode(int fullscreen, int width, int height, int bpp, float refreshrate,
 {
        viddef_mode_t mode;
 
+#if 0
+       // LordHavoc: FIXME: VorteX broke vid_restart with this, it is a mystery why it would ever work, commented out
        // multisampling should set at least 2 samples
        if (vid.support.arb_multisample)
        {
@@ -1750,6 +1752,7 @@ int VID_Mode(int fullscreen, int width, int height, int bpp, float refreshrate,
                if (vid_multisampling.integer)
                        samples = max(2, samples);
        }
+#endif
 
        memset(&mode, 0, sizeof(mode));
        mode.fullscreen = fullscreen != 0;