From 644500de6104202a74d400592a648c041994bb26 Mon Sep 17 00:00:00 2001 From: Magnus Norddahl Date: Fri, 15 Sep 2023 10:50:41 +0200 Subject: [PATCH] Fix warning --- src/common/rendering/vulkan/textures/vk_texture.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/rendering/vulkan/textures/vk_texture.cpp b/src/common/rendering/vulkan/textures/vk_texture.cpp index b33f5c8493..d16f720051 100644 --- a/src/common/rendering/vulkan/textures/vk_texture.cpp +++ b/src/common/rendering/vulkan/textures/vk_texture.cpp @@ -219,7 +219,7 @@ void VkTextureManager::CreateLightmap(int newLMTextureSize, int newLMTextureCoun auto cmdbuffer = fb->GetCommands()->GetTransferCommands(); - if (newPixelData.Size() >= w * h * count * 3) + if (newPixelData.Size() >= (size_t)w * h * count * 3) { assert(newPixelData.Size() == w * h * count * 3);