mirror of
https://github.com/ZDoom/qzdoom.git
synced 2025-02-13 07:31:04 +00:00
Make sure everything has finished rendering or uploading before changing the render buffers
This commit is contained in:
parent
24bf0c685c
commit
4644221454
1 changed files with 1 additions and 0 deletions
|
@ -66,6 +66,7 @@ void VkRenderBuffers::BeginFrame(int width, int height, int sceneWidth, int scen
|
||||||
|
|
||||||
if (width != mWidth || height != mHeight || mSamples != samples)
|
if (width != mWidth || height != mHeight || mSamples != samples)
|
||||||
{
|
{
|
||||||
|
fb->GetCommands()->WaitForCommands(false);
|
||||||
fb->GetRenderPassManager()->RenderBuffersReset();
|
fb->GetRenderPassManager()->RenderBuffersReset();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue