From: uis Date: Tue, 2 Jan 2024 18:23:40 +0000 (+0300) Subject: Disable dithering for high colordepth X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=6368e81b69b9f057549daf9ab17c0b3b4e3e41a1;p=xonotic%2Fdarkplaces.git Disable dithering for high colordepth --- 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);