- 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:
parent
b9d4e77214
commit
5179a69fdb
5 changed files with 9 additions and 6 deletions
|
|
@ -25,6 +25,7 @@ public:
|
|||
VulkanDevice *device;
|
||||
std::unique_ptr<VulkanSwapChain> swapChain;
|
||||
uint32_t presentImageIndex = 0xffffffff;
|
||||
bool cur_vsync;
|
||||
|
||||
VulkanCommandBuffer *GetTransferCommands();
|
||||
VulkanCommandBuffer *GetDrawCommands();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue