Skip to content

Commit

Permalink
remove call to RemoveTexture(), correct comment
Browse files Browse the repository at this point in the history
  • Loading branch information
shawnhatori committed Jan 13, 2024
1 parent c4207ec commit 77e56c0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion backends/imgui_impl_vulkan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -816,7 +816,6 @@ void ImGui_ImplVulkan_DestroyFontsTexture()

if (bd->FontDescriptorSet)
{
ImGui_ImplVulkan_RemoveTexture(bd->FontDescriptorSet);
bd->FontDescriptorSet = VK_NULL_HANDLE;
io.Fonts->SetTexID(0);
}
Expand Down
2 changes: 1 addition & 1 deletion backends/imgui_impl_vulkan.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
#include <vulkan/vulkan.h>

// Initialization data, for ImGui_ImplVulkan_Init()
// NOTE: 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.
// NOTE: VkDescriptorPool must contain a pool size large enough to hold an extra descriptor set and VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER descriptor.
// [Please zero-clear before use!]
struct ImGui_ImplVulkan_InitInfo
{
Expand Down

0 comments on commit 77e56c0

Please sign in to comment.