From 6368e81b69b9f057549daf9ab17c0b3b4e3e41a1 Mon Sep 17 00:00:00 2001 From: uis Date: Tue, 2 Jan 2024 21:23:40 +0300 Subject: [PATCH] Disable dithering for high colordepth --- vid_shared.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/vid_shared.c b/vid_shared.c index 26b69ad0..9ac2ad7e 100644 --- a/vid_shared.c +++ b/vid_shared.c @@ -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); -- 2.39.2