aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/texture_cache/decode_bc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/video_core/texture_cache/decode_bc.cpp')
-rw-r--r--src/video_core/texture_cache/decode_bc.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/texture_cache/decode_bc.cpp b/src/video_core/texture_cache/decode_bc.cpp
index a018c6df46..5279ff2a0a 100644
--- a/src/video_core/texture_cache/decode_bc.cpp
+++ b/src/video_core/texture_cache/decode_bc.cpp
@@ -67,8 +67,8 @@ void DecompressBlocks(std::span<const u8> input, std::span<u8> output, BufferIma
const u32 width = copy.image_extent.width;
const u32 height = copy.image_extent.height * copy.image_subresource.num_layers;
const u32 depth = copy.image_extent.depth;
- const u32 block_width = std::min(width, BLOCK_SIZE);
- const u32 block_height = std::min(height, BLOCK_SIZE);
+ const u32 block_width = (std::min)(width, BLOCK_SIZE);
+ const u32 block_height = (std::min)(height, BLOCK_SIZE);
const u32 pitch = width * out_bpp;
size_t input_offset = 0;
size_t output_offset = 0;