From 8da135fd159a521cd9deec6ef5c9101c3e6545e7 Mon Sep 17 00:00:00 2001 From: uis Date: Sat, 30 Dec 2023 07:59:12 +0300 Subject: [PATCH] Disable dithering for high colordepth It is enabled by default in OpenGL --- vid_shared.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vid_shared.c b/vid_shared.c index d8861d72..2e880cac 100644 --- a/vid_shared.c +++ b/vid_shared.c @@ -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 -- 2.39.2