|  |  | @ -1439,12 +1439,15 @@ void    ImFontAtlas::GetTexDataAsRGBA32(unsigned char** out_pixels, int* out_wid | 
			
		
	
		
		
			
				
					
					|  |  |  |     { |  |  |  |     { | 
			
		
	
		
		
			
				
					
					|  |  |  |         unsigned char* pixels; |  |  |  |         unsigned char* pixels; | 
			
		
	
		
		
			
				
					
					|  |  |  |         GetTexDataAsAlpha8(&pixels, NULL, NULL); |  |  |  |         GetTexDataAsAlpha8(&pixels, NULL, NULL); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         if (pixels) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         { | 
			
		
	
		
		
			
				
					
					|  |  |  |             TexPixelsRGBA32 = (unsigned int*)ImGui::MemAlloc((size_t)(TexWidth * TexHeight * 4)); |  |  |  |             TexPixelsRGBA32 = (unsigned int*)ImGui::MemAlloc((size_t)(TexWidth * TexHeight * 4)); | 
			
		
	
		
		
			
				
					
					|  |  |  |             const unsigned char* src = pixels; |  |  |  |             const unsigned char* src = pixels; | 
			
		
	
		
		
			
				
					
					|  |  |  |             unsigned int* dst = TexPixelsRGBA32; |  |  |  |             unsigned int* dst = TexPixelsRGBA32; | 
			
		
	
		
		
			
				
					
					|  |  |  |             for (int n = TexWidth * TexHeight; n > 0; n--) |  |  |  |             for (int n = TexWidth * TexHeight; n > 0; n--) | 
			
		
	
		
		
			
				
					
					|  |  |  |                 *dst++ = IM_COL32(255, 255, 255, (unsigned int)(*src++)); |  |  |  |                 *dst++ = IM_COL32(255, 255, 255, (unsigned int)(*src++)); | 
			
		
	
		
		
			
				
					
					|  |  |  |         } |  |  |  |         } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     } | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     *out_pixels = (unsigned char*)TexPixelsRGBA32; |  |  |  |     *out_pixels = (unsigned char*)TexPixelsRGBA32; | 
			
		
	
		
		
			
				
					
					|  |  |  |     if (out_width) *out_width = TexWidth; |  |  |  |     if (out_width) *out_width = TexWidth; | 
			
		
	
	
		
		
			
				
					|  |  | @ -1683,6 +1686,7 @@ bool    ImFontAtlasBuildWithStbTruetype(ImFontAtlas* atlas) | 
			
		
	
		
		
			
				
					
					|  |  |  |         IM_ASSERT(font_offset >= 0); |  |  |  |         IM_ASSERT(font_offset >= 0); | 
			
		
	
		
		
			
				
					
					|  |  |  |         if (!stbtt_InitFont(&tmp.FontInfo, (unsigned char*)cfg.FontData, font_offset)) |  |  |  |         if (!stbtt_InitFont(&tmp.FontInfo, (unsigned char*)cfg.FontData, font_offset)) | 
			
		
	
		
		
			
				
					
					|  |  |  |         { |  |  |  |         { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             atlas->TexWidth = atlas->TexHeight = 0; // Reset output on failure
 | 
			
		
	
		
		
			
				
					
					|  |  |  |             ImGui::MemFree(tmp_array); |  |  |  |             ImGui::MemFree(tmp_array); | 
			
		
	
		
		
			
				
					
					|  |  |  |             return false; |  |  |  |             return false; | 
			
		
	
		
		
			
				
					
					|  |  |  |         } |  |  |  |         } | 
			
		
	
	
		
		
			
				
					|  |  | 
 |