]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Disable dithering for high colordepth
authoruis <uis9936@gmail.com>
Tue, 2 Jan 2024 18:23:40 +0000 (21:23 +0300)
committeruis <uis9936@gmail.com>
Tue, 2 Jan 2024 18:23:40 +0000 (21:23 +0300)
vid_shared.c

index 26b69ad095cf0dbbf8fde3f40095739d8bd2c271..9ac2ad7ec61dc26c1e909b765b82c348f10afc01 100644 (file)
@@ -1197,8 +1197,10 @@ void VID_CheckExtensions(void)
                vid.samples = samples;
                if (samples > 1)
                        qglEnable(GL_MULTISAMPLE_ARB);
-               else
+               else {
+                       qglDisable(GL_MULTISAMPLE_ARB);
                        vid.allowalphatocoverage = false;
+               }
        }
        else
        {
@@ -1206,6 +1208,9 @@ void VID_CheckExtensions(void)
                vid.samples = 1;
        }
 
+       if (vid_bitsperpixel.integer >= 24)
+               qglDisable(GL_DITHER);
+
        // VorteX: set other info (maybe place them in VID_InitMode?)
        Cvar_SetQuick(&gl_info_vendor, gl_vendor);
        Cvar_SetQuick(&gl_info_renderer, gl_renderer);