From 297597f6976386cdbe35506bd9816722eaf47616 Mon Sep 17 00:00:00 2001 From: Billy Laws Date: Sun, 9 Oct 2022 16:35:13 +0100 Subject: [PATCH] Fix texture manager depth compat comparison --- app/src/main/cpp/skyline/gpu/texture_manager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/cpp/skyline/gpu/texture_manager.cpp b/app/src/main/cpp/skyline/gpu/texture_manager.cpp index 1147f7ca..7d36b096 100644 --- a/app/src/main/cpp/skyline/gpu/texture_manager.cpp +++ b/app/src/main/cpp/skyline/gpu/texture_manager.cpp @@ -48,7 +48,7 @@ namespace skyline::gpu { if (matchGuestTexture.format->IsCompatible(*guestTexture.format) && ((matchGuestTexture.dimensions.width == guestTexture.dimensions.width && matchGuestTexture.dimensions.height == guestTexture.dimensions.height && - matchGuestTexture.dimensions.depth == guestTexture.GetViewDepth()) + matchGuestTexture.GetViewDepth() == guestTexture.GetViewDepth()) || matchGuestTexture.viewMipBase > 0) && matchGuestTexture.tileConfig == guestTexture.tileConfig) { auto &texture{hostMapping->texture};