From d24474ea82e55ef4e465d613f1b2f2a004b59d0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Thu, 16 Apr 2015 14:39:04 -0700 Subject: [PATCH] Fixed: warning: missing field 'w' initializer [-Wmissing-field-initializers] --- imgui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgui.cpp b/imgui.cpp index 98748f75..45fe9eef 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -8451,7 +8451,7 @@ void ImFontAtlas::RenderCustomTexData(int pass, void* p_rects) ImVector& rects = *(ImVector*)p_rects; if (pass == 0) { - stbrp_rect r = { 0 }; + stbrp_rect r = {}; r.w = (TEX_DATA_W*2)+1; r.h = TEX_DATA_H+1; rects.push_back(r);