From 634e6b2603e114d0c2e183e8d24e393fec19b60b Mon Sep 17 00:00:00 2001 From: Magnus Norddahl Date: Sat, 2 Sep 2023 14:50:57 +0200 Subject: [PATCH] Finish upload before using buffers --- src/common/rendering/vulkan/vk_renderdevice.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/common/rendering/vulkan/vk_renderdevice.cpp b/src/common/rendering/vulkan/vk_renderdevice.cpp index 1971434151..5f2b0b1c67 100644 --- a/src/common/rendering/vulkan/vk_renderdevice.cpp +++ b/src/common/rendering/vulkan/vk_renderdevice.cpp @@ -551,6 +551,7 @@ void VulkanRenderDevice::SetLevelMesh(LevelMesh* mesh) Printf("Running VkLightmap.\n"); + GetCommands()->WaitForCommands(false); GetLightmap()->Raytrace(mesh); Printf("Copying data.\n");