mirror of
https://github.com/Drezil/dear-imgui.hs.git
synced 2024-12-22 04:36:35 +00:00
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.
This commit is contained in:
parent
ddaf41bf88
commit
6dbb455d62
@ -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 )
|
||||
|
Loading…
Reference in New Issue
Block a user