Skip to content

Commit

Permalink
Update AMD Windows black texture bug fix hack to work on newer GPUs
Browse files Browse the repository at this point in the history
  • Loading branch information
MarioSMB committed Aug 7, 2024
1 parent 4ad8cba commit a93448b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vid_shared.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a93448b

Please sign in to comment.