Fix viewpoint buffer not getting cleared when in the menus

This commit is contained in:
Magnus Norddahl 2022-07-28 13:46:47 +02:00 committed by Christoph Oelckers
commit 742ae8c907
4 changed files with 10 additions and 2 deletions

View file

@ -419,6 +419,7 @@ TArray<uint8_t> VulkanFrameBuffer::GetScreenshotBuffer(int &pitch, ESSType &colo
void VulkanFrameBuffer::BeginFrame()
{
SetViewportRects(nullptr);
mViewpoints->Clear();
mCommands->BeginFrame();
mTextureManager->BeginFrame();
mScreenBuffers->BeginFrame(screen->mScreenViewport.width, screen->mScreenViewport.height, screen->mSceneViewport.width, screen->mSceneViewport.height);