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

docking
ocornut 10 years ago
parent 681ac5f777
commit 5f6b261c9b

@ -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;
}

Loading…
Cancel
Save