diff --git a/src/video_core/renderer_vulkan/vk_staging_buffer_pool.cpp b/src/video_core/renderer_vulkan/vk_staging_buffer_pool.cpp index 2c941d66e9..d03efa8f0a 100644 --- a/src/video_core/renderer_vulkan/vk_staging_buffer_pool.cpp +++ b/src/video_core/renderer_vulkan/vk_staging_buffer_pool.cpp @@ -37,7 +37,7 @@ size_t GetStreamBufferSize(const Device& device, size_t max_stream_buffer_size, bool has_device_local_host_visible_heap{}; ForEachDeviceLocalHostVisibleHeap(device, [&size, &has_device_local_host_visible_heap](size_t index, VkMemoryHeap& heap) { has_device_local_host_visible_heap = true; - size = (std::max)(size, heap.size); + size = std::max(size, heap.size); }); if (has_device_local_host_visible_heap) { // If rebar is not supported, cut the max heap size to 40%. This will allow 2 captures to be @@ -49,7 +49,7 @@ size_t GetStreamBufferSize(const Device& device, size_t max_stream_buffer_size, } else { size = max_stream_buffer_size; } - return (std::min)(Common::AlignUp(size, max_alignment), max_stream_buffer_size); + return std::min(Common::AlignUp(size, max_alignment), max_stream_buffer_size); } } // Anonymous namespace