From 6dbb455d6290ec7b018f6f9496bb575945fa5990 Mon Sep 17 00:00:00 2001 From: Alexander Bondarenko <486682+dpwiz@users.noreply.github.com> Date: Thu, 20 Jul 2023 19:25:02 +0300 Subject: [PATCH] Fix vulkan init wrapper (#180) `init_info` got dynamic render flag, which is a breaking change with its default value. Setting it to `false` will fix validation errors coming from misconfiguration. --- src/DearImGui/Vulkan.hs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/DearImGui/Vulkan.hs b/src/DearImGui/Vulkan.hs index c315a6e..3c63cb6 100644 --- a/src/DearImGui/Vulkan.hs +++ b/src/DearImGui/Vulkan.hs @@ -134,6 +134,8 @@ vulkanInit ( InitInfo {..} ) renderPass = do initInfo.MSAASamples = $(VkSampleCountFlagBits msaaSamples); initInfo.Allocator = $(VkAllocationCallbacks* callbacksPtr); initInfo.CheckVkResultFn = $( void (*checkResultFunPtr)(VkResult) ); + initInfo.UseDynamicRendering = false; + // TODO: initInfo.ColorAttachmentFormat return ImGui_ImplVulkan_Init(&initInfo, $(VkRenderPass renderPass) ); }|] pure ( checkResultFunPtr, initResult /= 0 )