- set viewport dimensions each frame in Vulkan framebuffer

This fixes visual artifacts when resolution is changed without a level running, i.e. from menu or fullscreen console
This commit is contained in:
alexey.lysiuk 2019-03-07 13:24:56 +02:00
parent 0679b493ec
commit 16008e4aa8

View file

@ -73,7 +73,6 @@ VulkanFrameBuffer::VulkanFrameBuffer(void *hMonitor, bool fullscreen, VulkanDevi
Super(hMonitor, fullscreen)
{
device = dev;
SetViewportRects(nullptr);
InitPalette();
}
@ -580,6 +579,7 @@ void VulkanFrameBuffer::UpdatePalette()
void VulkanFrameBuffer::BeginFrame()
{
SetViewportRects(nullptr);
mScreenBuffers->BeginFrame(screen->mScreenViewport.width, screen->mScreenViewport.height, screen->mSceneViewport.width, screen->mSceneViewport.height);
mSaveBuffers->BeginFrame(SAVEPICWIDTH, SAVEPICHEIGHT, SAVEPICWIDTH, SAVEPICHEIGHT);
mPostprocess->BeginFrame();