mirror of
				https://github.com/Drezil/dear-imgui.hs.git
				synced 2025-11-03 22:51:07 +01: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:
		
				
					committed by
					
						
						GitHub
					
				
			
			
				
	
			
			
			
						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 )
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user