From f5871c0b92c88a1c1bbb8eaeff29cf29ba7ffeac Mon Sep 17 00:00:00 2001 From: Francisco Demartino Date: Thu, 16 Nov 2017 21:45:21 -0300 Subject: [PATCH] fix uninitialized atlas packing context --- imgui_draw.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgui_draw.cpp b/imgui_draw.cpp index 1b173e85..11847dce 100644 --- a/imgui_draw.cpp +++ b/imgui_draw.cpp @@ -1566,7 +1566,7 @@ bool ImFontAtlasBuildWithStbTruetype(ImFontAtlas* atlas) // Start packing const int max_tex_height = 1024*32; - stbtt_pack_context spc; + stbtt_pack_context spc = {}; stbtt_PackBegin(&spc, NULL, atlas->TexWidth, max_tex_height, 0, atlas->TexGlyphPadding, NULL); stbtt_PackSetOversampling(&spc, 1, 1);