mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-08 16:01:19 +12:00
Vulkan: Fix ImGui font leak
This commit is contained in:
parent
e524e080e1
commit
16c5726db5
2 changed files with 12 additions and 0 deletions
|
@ -1623,6 +1623,7 @@ void VulkanRenderer::Initialize()
|
|||
|
||||
void VulkanRenderer::Shutdown()
|
||||
{
|
||||
DeleteFontTextures();
|
||||
Renderer::Shutdown();
|
||||
SubmitCommandBuffer();
|
||||
WaitDeviceIdle();
|
||||
|
@ -1853,6 +1854,7 @@ void VulkanRenderer::DeleteTexture(ImTextureID id)
|
|||
|
||||
void VulkanRenderer::DeleteFontTextures()
|
||||
{
|
||||
WaitDeviceIdle();
|
||||
ImGui_ImplVulkan_DestroyFontsTexture();
|
||||
}
|
||||
|
||||
|
@ -2675,6 +2677,7 @@ void VulkanRenderer::RecreateSwapchain(bool mainWindow, bool skipCreate)
|
|||
Vector2i size;
|
||||
if (mainWindow)
|
||||
{
|
||||
ImGui_ImplVulkan_DestroyFontsTexture();
|
||||
ImGui_ImplVulkan_Shutdown();
|
||||
gui_getWindowPhysSize(size.x, size.y);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue