- don't let Vulkan access the vid_vsync variable directly.

Since the FrameBuffers have a SetVsync method anything these last set must count, not the global variable directly.
This commit is contained in:
Christoph Oelckers 2019-10-01 20:50:15 +02:00
commit 5179a69fdb
5 changed files with 9 additions and 6 deletions

View file

@ -636,6 +636,7 @@ const char* VulkanFrameBuffer::DeviceName() const
void VulkanFrameBuffer::SetVSync(bool vsync)
{
// This is handled in VulkanSwapChain::AcquireImage.
cur_vsync = vsync;
}
void VulkanFrameBuffer::CleanForRestart()