]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - vid_sdl.c
fix the solid water bug for real
[xonotic/darkplaces.git] / vid_sdl.c
index 2f9bba72c36a7186009c714a89ef26812b68c3e4..4fb37539e4a4117ae4c95e8e0a69a6d93e61e2e7 100644 (file)
--- a/vid_sdl.c
+++ b/vid_sdl.c
@@ -2151,27 +2151,6 @@ qboolean VID_InitModeGL(viddef_mode_t *mode)
        vid_hasfocus = true;
        vid_usingmouse = false;
        vid_usinghidecursor = false;
-
-       // enable multisampling
-       if (vid_multisampling.integer)
-       {
-               if (vid.support.arb_multisample)
-               {
-                       qglEnable(GL_MULTISAMPLE_ARB);
-                       // it seems that enabling GL_MULTISAMPLE_ARB forces antialiasing to always work, fix the cvar as well
-                       // make sure vid_sample is at least 2 to make things correct
-                       if (vid_samples.integer < 2)
-                               Cvar_SetValueQuick(&vid_samples, 0);    
-               }
-               else
-               {
-                       Cvar_SetValueQuick(&vid_multisampling, 0);
-                       qglDisable(GL_MULTISAMPLE_ARB);
-               }
-       }
-       else
-               qglDisable(GL_MULTISAMPLE_ARB);
-       CHECKGLERROR
                
 #if SETVIDEOMODE
        SDL_WM_GrabInput(SDL_GRAB_OFF);