From 911b416d28e4bf15345f00622f33c615a645f1ea Mon Sep 17 00:00:00 2001 From: OV2 Date: Sun, 12 May 2024 01:23:23 +0200 Subject: [PATCH] win32: vulkan: apply vsync setting during init --- win32/CVulkan.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/win32/CVulkan.cpp b/win32/CVulkan.cpp index ec1a99d9..bbde45b8 100644 --- a/win32/CVulkan.cpp +++ b/win32/CVulkan.cpp @@ -91,6 +91,11 @@ bool CVulkan::Initialize(HWND hWnd) } } + if (context->swapchain->set_vsync(GUI.Vsync)) + { + context->recreate_swapchain(); + } + simple_output = std::make_unique(context.get(), vk::Format::eR5G6B5UnormPack16); return true;