mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-06 06:51:18 +12:00
Vulkan: Improve post-shutdown cleanup and minor improvements (#1401)
This commit is contained in:
parent
4f9eea07e0
commit
e834515f43
15 changed files with 190 additions and 118 deletions
|
@ -465,6 +465,15 @@ void ImGui_ImplVulkan_DestroyFontsTexture()
|
|||
if (g_FontView) { vkDestroyImageView(v->Device, g_FontView, v->Allocator); g_FontView = VK_NULL_HANDLE; }
|
||||
if (g_FontImage) { vkDestroyImage(v->Device, g_FontImage, v->Allocator); g_FontImage = VK_NULL_HANDLE; }
|
||||
if (g_FontMemory) { vkFreeMemory(v->Device, g_FontMemory, v->Allocator); g_FontMemory = VK_NULL_HANDLE; }
|
||||
|
||||
ImGuiIO& io = ImGui::GetIO();
|
||||
auto texture = io.Fonts->TexID;
|
||||
if(texture != (ImTextureID)nullptr)
|
||||
{
|
||||
ImGui_ImplVulkan_DeleteTexture(texture);
|
||||
delete (ImGuiTexture*)texture;
|
||||
io.Fonts->TexID = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
bool ImGui_ImplVulkan_CreateFontsTexture(VkCommandBuffer command_buffer)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue