- 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

@ -25,6 +25,7 @@ public:
VulkanDevice *device;
std::unique_ptr<VulkanSwapChain> swapChain;
uint32_t presentImageIndex = 0xffffffff;
bool cur_vsync;
VulkanCommandBuffer *GetTransferCommands();
VulkanCommandBuffer *GetDrawCommands();