Use IM_DELETE for deleting the existing font atlas.

This commit is contained in:
Skyth 2024-12-06 17:27:22 +03:00
parent 54d92fc641
commit f424c663cc

View file

@ -1073,7 +1073,7 @@ static void CreateImGuiBackend()
io.ConfigFlags |= ImGuiConfigFlags_NoMouseCursorChange; io.ConfigFlags |= ImGuiConfigFlags_NoMouseCursorChange;
#ifdef ENABLE_IM_FONT_ATLAS_SNAPSHOT #ifdef ENABLE_IM_FONT_ATLAS_SNAPSHOT
delete io.Fonts; IM_DELETE(io.Fonts);
io.Fonts = ImFontAtlasSnapshot::Load(); io.Fonts = ImFontAtlasSnapshot::Load();
#else #else
io.Fonts->TexDesiredWidth = 4096; io.Fonts->TexDesiredWidth = 4096;