mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-05-05 02:25:42 -04:00
ImGui: Clear memory for font after creating texture
This commit is contained in:
parent
e614522de5
commit
e132cac0e5
@ -314,6 +314,8 @@ static void ImGui_ImplDX11_CreateFontsTexture()
|
|||||||
desc.MaxLOD = 0.f;
|
desc.MaxLOD = 0.f;
|
||||||
g_pd3dDevice->CreateSamplerState(&desc, &g_pFontSampler);
|
g_pd3dDevice->CreateSamplerState(&desc, &g_pFontSampler);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
io.Fonts->ClearTexData();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ImGui_ImplDX11_CreateDeviceObjects()
|
bool ImGui_ImplDX11_CreateDeviceObjects()
|
||||||
|
@ -298,6 +298,7 @@ bool ImGui_ImplOpenGL3_CreateFontsTexture()
|
|||||||
|
|
||||||
// Restore state
|
// Restore state
|
||||||
glBindTexture(GL_TEXTURE_2D, last_texture);
|
glBindTexture(GL_TEXTURE_2D, last_texture);
|
||||||
|
io.Fonts->ClearTexData();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -577,6 +577,7 @@ bool ImGui_ImplVulkan_CreateFontsTexture(VkCommandBuffer command_buffer)
|
|||||||
|
|
||||||
// Store our identifier
|
// Store our identifier
|
||||||
io.Fonts->TexID = (ImTextureID)(intptr_t)&g_FontTexture;
|
io.Fonts->TexID = (ImTextureID)(intptr_t)&g_FontTexture;
|
||||||
|
io.Fonts->ClearTexData();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user