aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/texture_cache/surface_params.cpp
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2020-06-08 05:02:22 -0300
committerReinUsesLisp <reinuseslisp@airmail.cc>2020-06-08 05:02:22 -0300
commitbd43c0547085fcfb585ac3a90521eeb8414fd538 (patch)
treed7a898505ad43a8974b19aebc7b067ee2f46adde /src/video_core/texture_cache/surface_params.cpp
parentc99f5d405b6a24603ff8174aeb2952facc4a92d9 (diff)
texture_cache: Port original code management for 2D vs 3D textures
Handle blits to images as 2D, even when they have block depth. - Fixes rendering issues on Luigi's Mansion 3
Diffstat (limited to 'src/video_core/texture_cache/surface_params.cpp')
-rw-r--r--src/video_core/texture_cache/surface_params.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/texture_cache/surface_params.cpp b/src/video_core/texture_cache/surface_params.cpp
index 6fe7c85ac..0b2b2b8c4 100644
--- a/src/video_core/texture_cache/surface_params.cpp
+++ b/src/video_core/texture_cache/surface_params.cpp
@@ -247,7 +247,7 @@ SurfaceParams SurfaceParams::CreateForFermiCopySurface(
params.height = config.height;
params.pitch = config.pitch;
// TODO(Rodrigo): Try to guess texture arrays from parameters
- params.target = params.block_depth > 0 ? SurfaceTarget::Texture3D : SurfaceTarget::Texture2D;
+ params.target = SurfaceTarget::Texture2D;
params.depth = 1;
params.num_levels = 1;
params.emulated_levels = 1;