summaryrefslogtreecommitdiffstats
path: root/src/video_core/textures
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2019-04-14 06:44:16 +0200
committerReinUsesLisp <reinuseslisp@airmail.cc>2019-06-21 02:36:11 +0200
commitfb94871791f78703737125cd2e5a13db8b7d1059 (patch)
tree774dc3eab1bea643568582fd96ea4d96c4bd824b /src/video_core/textures
parentgl_texture_cache: Initial implementation (diff)
downloadyuzu-fb94871791f78703737125cd2e5a13db8b7d1059.tar
yuzu-fb94871791f78703737125cd2e5a13db8b7d1059.tar.gz
yuzu-fb94871791f78703737125cd2e5a13db8b7d1059.tar.bz2
yuzu-fb94871791f78703737125cd2e5a13db8b7d1059.tar.lz
yuzu-fb94871791f78703737125cd2e5a13db8b7d1059.tar.xz
yuzu-fb94871791f78703737125cd2e5a13db8b7d1059.tar.zst
yuzu-fb94871791f78703737125cd2e5a13db8b7d1059.zip
Diffstat (limited to 'src/video_core/textures')
-rw-r--r--src/video_core/textures/decoders.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/video_core/textures/decoders.cpp b/src/video_core/textures/decoders.cpp
index 664ed4b56..217805386 100644
--- a/src/video_core/textures/decoders.cpp
+++ b/src/video_core/textures/decoders.cpp
@@ -359,8 +359,7 @@ std::size_t CalculateSize(bool tiled, u32 bytes_per_pixel, u32 width, u32 height
const u32 aligned_width = Common::AlignUp(width * bytes_per_pixel, gob_size_x);
const u32 aligned_height = Common::AlignUp(height, gob_size_y * block_height);
const u32 aligned_depth = Common::AlignUp(depth, gob_size_z * block_depth);
- const u32 size = aligned_width * aligned_height * aligned_depth;
- return size;
+ return aligned_width * aligned_height * aligned_depth;
} else {
return width * height * depth * bytes_per_pixel;
}