Fix for Coverity static analysis

This commit is contained in:
ocornut 2015-04-01 15:05:06 +01:00
parent eb3e640fa6
commit c0699958ce

View File

@ -8201,7 +8201,7 @@ void ImFontAtlas::RenderCustomTexData(int pass, void* p_rects)
ImVector<stbrp_rect>& rects = *(ImVector<stbrp_rect>*)p_rects;
if (pass == 0)
{
stbrp_rect r;
stbrp_rect r = { 0 };
r.w = (TEX_DATA_W*2)+1;
r.h = TEX_DATA_H+1;
rects.push_back(r);