From a93448b20fc20264219c04e017ea52f35cb19fdf Mon Sep 17 00:00:00 2001 From: Mario Date: Wed, 7 Aug 2024 15:10:57 +1000 Subject: [PATCH] Update AMD Windows black texture bug fix hack to work on newer GPUs --- vid_shared.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.2