Make sure everything has finished rendering or uploading before changing the render buffers

This commit is contained in:
Magnus Norddahl 2022-06-11 23:46:15 +02:00 committed by Christoph Oelckers
parent 24bf0c685c
commit 4644221454

View file

@ -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();
}