]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - vid_sdl.c
Multisampling initialisation moved from vid_sdl to gl_backend. Make cubemaps array...
[xonotic/darkplaces.git] / vid_sdl.c
index fdd70caaa2c386827c795f4d90ade552b1e771d2..193739941d84acb2d91249dce7bd6729d3898ba7 100644 (file)
--- a/vid_sdl.c
+++ b/vid_sdl.c
@@ -2292,27 +2292,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);