Merge pull request #1445 from franciscod/uninitialized_o3_werror

ImFontAtlas: Fix maybe-uninitialized warning.
This commit is contained in:
omar 2017-11-19 00:53:35 +01:00 committed by GitHub
commit 9289e8055c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1617,7 +1617,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);