]> git.rm.cloudns.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)
committerRudolf Polzer <divVerent@xonotic.org>
Mon, 23 May 2011 11:33:02 +0000 (13:33 +0200)
and looks like it does not work anyway

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11155 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=6551bfc9535e8b62c0c567500948d44b8da6acbe

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;