From d19623aceb504250960c8441259851a595997c81 Mon Sep 17 00:00:00 2001 From: def Date: Sat, 2 Apr 2022 17:21:34 +0200 Subject: [PATCH] Fix linux x86 compilation src/engine/client/backend/vulkan/backend_vulkan.cpp:1422:108: error: no matching function for call to 'maximum(size_t&, VkDeviceSize)' --- src/engine/client/backend/vulkan/backend_vulkan.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/client/backend/vulkan/backend_vulkan.cpp b/src/engine/client/backend/vulkan/backend_vulkan.cpp index 1a5efd78d..5f423ffb2 100644 --- a/src/engine/client/backend/vulkan/backend_vulkan.cpp +++ b/src/engine/client/backend/vulkan/backend_vulkan.cpp @@ -1419,7 +1419,7 @@ protected: MemRange.size = VK_WHOLE_SIZE; vkInvalidateMappedMemoryRanges(m_VKDevice, 1, &MemRange); - size_t RealFullImageSize = maximum(ImageTotalSize, Height * m_GetPresentedImgDataHelperMappedLayoutPitch); + size_t RealFullImageSize = maximum(ImageTotalSize, (size_t)(Height * m_GetPresentedImgDataHelperMappedLayoutPitch)); if(DstData.size() < RealFullImageSize + (Width * 4)) DstData.resize(RealFullImageSize + (Width * 4)); // extra space for flipping