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

features/sdl_renderer3_multiviewports
ocornut ago%!(EXTRA string=11 years)
parent 681ac5f777
commit 5f6b261c9b
  1. 3
      imgui.cpp

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

Loading…
Cancel
Save