From f55f6ff9bbe32696da0886570833ca46c54ebd65 Mon Sep 17 00:00:00 2001 From: ReinUsesLisp Date: Sun, 26 Jan 2020 21:48:04 -0300 Subject: texture_cache/surface_base: Fix layered break down Layered break downs was passing "layer" as a "depth" parameter. This commit addresses that. --- src/video_core/texture_cache/surface_base.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/video_core/texture_cache/surface_base.cpp b/src/video_core/texture_cache/surface_base.cpp index 829268b4c..84469b7ba 100644 --- a/src/video_core/texture_cache/surface_base.cpp +++ b/src/video_core/texture_cache/surface_base.cpp @@ -135,7 +135,7 @@ std::vector SurfaceBaseImpl::BreakDownLayered(const SurfaceParams& i for (u32 level = 0; level < mipmaps; level++) { const u32 width = SurfaceParams::IntersectWidth(params, in_params, level, level); const u32 height = SurfaceParams::IntersectHeight(params, in_params, level, level); - result.emplace_back(width, height, layer, level); + result.emplace_back(0, 0, layer, 0, 0, layer, level, level, width, height, 1); } } return result; -- cgit v1.2.3