@@ -47,7 +47,6 @@ static VkDescriptorPool g_DescriptorPool = VK_NULL_HANDLE;
4747static ImGui_ImplVulkanH_Window g_MainWindowData;
4848static uint32_t g_MinImageCount = 2 ;
4949static bool g_SwapChainRebuild = false ;
50- static VkImageUsageFlags g_SwapChainImageUsage = VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT;
5150
5251static void check_vk_result (VkResult err)
5352{
@@ -229,7 +228,7 @@ static void SetupVulkanWindow(ImGui_ImplVulkanH_Window* wd, VkSurfaceKHR surface
229228
230229 // Create SwapChain, RenderPass, Framebuffer, etc.
231230 IM_ASSERT (g_MinImageCount >= 2 );
232- ImGui_ImplVulkanH_CreateOrResizeWindow (g_Instance, g_PhysicalDevice, g_Device, wd, g_QueueFamily, g_Allocator, width, height, g_MinImageCount, g_SwapChainImageUsage );
231+ ImGui_ImplVulkanH_CreateOrResizeWindow (g_Instance, g_PhysicalDevice, g_Device, wd, g_QueueFamily, g_Allocator, width, height, g_MinImageCount, 0 );
233232}
234233
235234static void CleanupVulkan ()
@@ -550,7 +549,7 @@ LRESULT WINAPI WndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
550549 if (fb_width > 0 && fb_height > 0 && (g_SwapChainRebuild || g_MainWindowData.Width != fb_width || g_MainWindowData.Height != fb_height))
551550 {
552551 ImGui_ImplVulkan_SetMinImageCount (g_MinImageCount);
553- ImGui_ImplVulkanH_CreateOrResizeWindow (g_Instance, g_PhysicalDevice, g_Device, &g_MainWindowData, g_QueueFamily, g_Allocator, fb_width, fb_height, g_MinImageCount, g_SwapChainImageUsage );
552+ ImGui_ImplVulkanH_CreateOrResizeWindow (g_Instance, g_PhysicalDevice, g_Device, &g_MainWindowData, g_QueueFamily, g_Allocator, fb_width, fb_height, g_MinImageCount, 0 );
554553 g_MainWindowData.FrameIndex = 0 ;
555554 g_SwapChainRebuild = false ;
556555 }
0 commit comments