فهرست منبع

Fixed uninitialised fields in ImBitmapFont (were unused when uninitialised, but still dodgy)

ocornut 11 سال پیش
والد
کامیت
5f6b261c9b
1فایلهای تغییر یافته به همراه3 افزوده شده و 0 حذف شده
  1. 3 0
      imgui.cpp

+ 3 - 0
imgui.cpp

@@ -5030,11 +5030,14 @@ void ImDrawList::AddText(ImFont font, float font_size, const ImVec2& pos, ImU32
 ImBitmapFont::ImBitmapFont()
 {
     Data = NULL;
+    DataSize = 0;
     DataOwned = false;
     Info = NULL;
     Common = NULL;
     Glyphs = NULL;
     GlyphsCount = 0;
+    Kerning = NULL;
+    KerningCount = 0;
     TabCount = 4;
 }