mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-11-04 07:01:04 +01:00 
			
		
		
		
	fix uninitialized atlas packing context
This commit is contained in:
		@@ -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);
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user