mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
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)'
This commit is contained in:
parent
92b96884a3
commit
d19623aceb
|
@ -1419,7 +1419,7 @@ protected:
|
||||||
MemRange.size = VK_WHOLE_SIZE;
|
MemRange.size = VK_WHOLE_SIZE;
|
||||||
vkInvalidateMappedMemoryRanges(m_VKDevice, 1, &MemRange);
|
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))
|
if(DstData.size() < RealFullImageSize + (Width * 4))
|
||||||
DstData.resize(RealFullImageSize + (Width * 4)); // extra space for flipping
|
DstData.resize(RealFullImageSize + (Width * 4)); // extra space for flipping
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue