mirror of
https://github.com/Drezil/dear-imgui.hs.git
synced 2024-11-22 08:56:59 +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.MSAASamples = $(VkSampleCountFlagBits msaaSamples);
|
||||||
initInfo.Allocator = $(VkAllocationCallbacks* callbacksPtr);
|
initInfo.Allocator = $(VkAllocationCallbacks* callbacksPtr);
|
||||||
initInfo.CheckVkResultFn = $( void (*checkResultFunPtr)(VkResult) );
|
initInfo.CheckVkResultFn = $( void (*checkResultFunPtr)(VkResult) );
|
||||||
|
initInfo.UseDynamicRendering = false;
|
||||||
|
// TODO: initInfo.ColorAttachmentFormat
|
||||||
return ImGui_ImplVulkan_Init(&initInfo, $(VkRenderPass renderPass) );
|
return ImGui_ImplVulkan_Init(&initInfo, $(VkRenderPass renderPass) );
|
||||||
}|]
|
}|]
|
||||||
pure ( checkResultFunPtr, initResult /= 0 )
|
pure ( checkResultFunPtr, initResult /= 0 )
|
||||||
|
Loading…
Reference in New Issue
Block a user