From 464422145405673e6a81c01310ceaa5b8b6da587 Mon Sep 17 00:00:00 2001 From: Magnus Norddahl Date: Sat, 11 Jun 2022 23:46:15 +0200 Subject: [PATCH] Make sure everything has finished rendering or uploading before changing the render buffers --- src/common/rendering/vulkan/textures/vk_renderbuffers.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/common/rendering/vulkan/textures/vk_renderbuffers.cpp b/src/common/rendering/vulkan/textures/vk_renderbuffers.cpp index 2c6c98aac..f01a8a37a 100644 --- a/src/common/rendering/vulkan/textures/vk_renderbuffers.cpp +++ b/src/common/rendering/vulkan/textures/vk_renderbuffers.cpp @@ -66,6 +66,7 @@ void VkRenderBuffers::BeginFrame(int width, int height, int sceneWidth, int scen if (width != mWidth || height != mHeight || mSamples != samples) { + fb->GetCommands()->WaitForCommands(false); fb->GetRenderPassManager()->RenderBuffersReset(); }