From e3ab4c63497e221183e61761c0ed22e03fd3f183 Mon Sep 17 00:00:00 2001 From: Samuliak Date: Wed, 10 Apr 2024 17:41:45 +0200 Subject: [PATCH] metal: minimalize texture hardcoding --- src/video_core/renderer_metal/mtl_graphics_pipeline.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/video_core/renderer_metal/mtl_graphics_pipeline.cpp b/src/video_core/renderer_metal/mtl_graphics_pipeline.cpp index fb3d38a294..deb9c66109 100644 --- a/src/video_core/renderer_metal/mtl_graphics_pipeline.cpp +++ b/src/video_core/renderer_metal/mtl_graphics_pipeline.cpp @@ -87,8 +87,8 @@ void GraphicsPipeline::Configure(bool is_indexed) { } } auto a = gpu_memory->Read(addr); - // HACK: hardcode the image - if (a != 310378932) + // HACK: this particular texture breaks SMO + if (a == 310378931) a = 310378932; return TexturePair(a, false);