From f424c663cc56940c8ce0a0f8e0a0884a16bd5bef Mon Sep 17 00:00:00 2001 From: Skyth <19259897+blueskythlikesclouds@users.noreply.github.com> Date: Fri, 6 Dec 2024 17:27:22 +0300 Subject: [PATCH] Use IM_DELETE for deleting the existing font atlas. --- UnleashedRecomp/gpu/video.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UnleashedRecomp/gpu/video.cpp b/UnleashedRecomp/gpu/video.cpp index 12875062..daae8d70 100644 --- a/UnleashedRecomp/gpu/video.cpp +++ b/UnleashedRecomp/gpu/video.cpp @@ -1073,7 +1073,7 @@ static void CreateImGuiBackend() io.ConfigFlags |= ImGuiConfigFlags_NoMouseCursorChange; #ifdef ENABLE_IM_FONT_ATLAS_SNAPSHOT - delete io.Fonts; + IM_DELETE(io.Fonts); io.Fonts = ImFontAtlasSnapshot::Load(); #else io.Fonts->TexDesiredWidth = 4096;