]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Update AMD Windows black texture bug fix hack to work on newer GPUs
authorMario <mario.mario@y7mail.com>
Wed, 7 Aug 2024 05:10:57 +0000 (15:10 +1000)
committerMario <mario.mario@y7mail.com>
Wed, 7 Aug 2024 05:10:57 +0000 (15:10 +1000)
vid_shared.c

index f6393c2e7d47c47303839effa1dd7154be76ab81..29baba255b76b6aab7fdfcafb9cdef0104add6f2 100644 (file)
@@ -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;