From 841233575bb76e2afced843c3e0329e38b59f5af Mon Sep 17 00:00:00 2001 From: Shawn Hatori Date: Mon, 12 Feb 2024 14:13:50 -0500 Subject: [PATCH] remove call to RemoveTexture(), correct comment --- backends/imgui_impl_vulkan.cpp | 1 - backends/imgui_impl_vulkan.h | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/backends/imgui_impl_vulkan.cpp b/backends/imgui_impl_vulkan.cpp index 2aa5518d5..d7c069153 100644 --- a/backends/imgui_impl_vulkan.cpp +++ b/backends/imgui_impl_vulkan.cpp @@ -817,7 +817,6 @@ void ImGui_ImplVulkan_DestroyFontsTexture() if (bd->FontDescriptorSet) { - ImGui_ImplVulkan_RemoveTexture(bd->FontDescriptorSet); bd->FontDescriptorSet = VK_NULL_HANDLE; io.Fonts->SetTexID(0); } diff --git a/backends/imgui_impl_vulkan.h b/backends/imgui_impl_vulkan.h index c2324449f..49dbce21c 100644 --- a/backends/imgui_impl_vulkan.h +++ b/backends/imgui_impl_vulkan.h @@ -57,8 +57,7 @@ #endif // Initialization data, for ImGui_ImplVulkan_Init() -// - VkDescriptorPool should be created with VK_DESCRIPTOR_POOL_CREATE_FREE_DESCRIPTOR_SET_BIT, -// and must contain a pool size large enough to hold an ImGui VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER descriptor. +// - VkDescriptorPool must be created with a VkDescriptorPoolSize that includes one ImGui VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER descriptor and a VkDescriptorPoolCreateInfo where `maxSets` includes one ImGui descriptor set. // - When using dynamic rendering, set UseDynamicRendering=true and fill PipelineRenderingCreateInfo structure. // [Please zero-clear before use!] struct ImGui_ImplVulkan_InitInfo