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
commitd109c27594b0e8122dd469932b47db22340ce352 (patch)
treed7a898505ad43a8974b19aebc7b067ee2f46adde /src/video_core/texture_cache/surface_params.cpp
parent9a6cba3e44198a41554a40db90daed681a8756b6 (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 6fe7c85aca..0b2b2b8c43 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;