2
0
Эх сурвалжийг харах

Fonts: GC Compact All exposed in Metrics->Memory Allocations includes compacting texture data.

ocornut 5 сар өмнө
parent
commit
074bf39e40
1 өөрчлөгдсөн 1 нэмэгдсэн , 0 устгасан
  1. 1 0
      imgui.cpp

+ 1 - 0
imgui.cpp

@@ -4394,6 +4394,7 @@ void ImGui::GcCompactTransientMiscBuffers()
     g.MultiSelectTempDataStacked = 0;
     g.MultiSelectTempData.clear_destruct();
     TableGcCompactSettings();
+    g.IO.Fonts->CompactCache();
 }
 
 // Free up/compact internal window buffers, we can use this when a window becomes unused.