summaryrefslogtreecommitdiff
path: root/src/video_core/textures/decoders.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/video_core/textures/decoders.cpp')
-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
359 const u32 aligned_width = Common::AlignUp(width * bytes_per_pixel, gob_size_x); 359 const u32 aligned_width = Common::AlignUp(width * bytes_per_pixel, gob_size_x);
360 const u32 aligned_height = Common::AlignUp(height, gob_size_y * block_height); 360 const u32 aligned_height = Common::AlignUp(height, gob_size_y * block_height);
361 const u32 aligned_depth = Common::AlignUp(depth, gob_size_z * block_depth); 361 const u32 aligned_depth = Common::AlignUp(depth, gob_size_z * block_depth);
362 const u32 size = aligned_width * aligned_height * aligned_depth; 362 return aligned_width * aligned_height * aligned_depth;
363 return size;
364 } else { 363 } else {
365 return width * height * depth * bytes_per_pixel; 364 return width * height * depth * bytes_per_pixel;
366 } 365 }