From: Mario Date: Wed, 7 Aug 2024 05:10:57 +0000 (+1000) Subject: Update AMD Windows black texture bug fix hack to work on newer GPUs X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a93448b20fc20264219c04e017ea52f35cb19fdf;p=xonotic%2Fdarkplaces.git Update AMD Windows black texture bug fix hack to work on newer GPUs --- diff --git a/vid_shared.c b/vid_shared.c index f6393c2e..29baba25 100644 --- a/vid_shared.c +++ b/vid_shared.c @@ -783,7 +783,7 @@ void GL_Setup(void) // gl_texturecompression_color is somehow broken on AMD's Windows driver, // see: https://gitlab.com/xonotic/darkplaces/-/issues/228 // HACK: force it off (less bad than adding hacky checks to the renderer) - if (strncmp(gl_renderer, "AMD Radeon(TM)", 14) == 0) + if (strncmp(gl_renderer, "AMD Radeon", 10) == 0) { Cvar_SetQuick(&gl_texturecompression_color, "0"); gl_texturecompression_color.flags |= CF_READONLY;