1
0
mirror of https://github.com/Drezil/imgui.git synced 2025-03-29 23:42:44 +00:00

Fix for Coverity static analysis

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

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