]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Disable dithering for high colordepth
authoruis <uis9936@gmail.com>
Sat, 30 Dec 2023 04:59:12 +0000 (07:59 +0300)
committeruis <uis9936@gmail.com>
Tue, 2 Jan 2024 15:58:15 +0000 (18:58 +0300)
It is enabled by default in OpenGL

vid_shared.c

index d8861d722707530bf127bba79788a681fac33e29..2e880cac6051fc8a7cc8c64397fdbb6cc144c60c 100644 (file)
@@ -843,6 +843,8 @@ void GL_Setup(void)
                        vid.allowalphatocoverage = false;
                }
        }
+       if (vid_bitsperpixel.integer >= 24)
+               qglDisable(GL_DITHER);
        // currently MSAA antialiasing is not implemented for fbo viewports, so we actually have to force this off anyway.
        vid.allowalphatocoverage = false;
 #endif