From 2215e67ee1eca54ff03534dce9fb90b7bac19a52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D1=80=D0=B0=D0=BD=D0=B8=D0=BC=D0=B8=D1=80=20=D0=9A?= =?UTF-8?q?=D0=B0=D1=80=D0=B0=D1=9F=D0=B8=D1=9B?= Date: Fri, 17 Jun 2022 00:17:37 -0700 Subject: [PATCH] Fixed ImGui assert. --- examples/common/example-glue.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/common/example-glue.cpp b/examples/common/example-glue.cpp index 7ce6ff19f..fd7606351 100644 --- a/examples/common/example-glue.cpp +++ b/examples/common/example-glue.cpp @@ -81,11 +81,11 @@ static bool bar(float _width, float _maxWidth, float _height, const ImVec4& _col bool itemHovered = false; - ImGui::Button("", ImVec2(_width, _height) ); + ImGui::Button("##", ImVec2(_width, _height) ); itemHovered |= ImGui::IsItemHovered(); ImGui::SameLine(); - ImGui::InvisibleButton("", ImVec2(bx::max(1.0f, _maxWidth-_width), _height) ); + ImGui::InvisibleButton("##", ImVec2(bx::max(1.0f, _maxWidth-_width), _height) ); itemHovered |= ImGui::IsItemHovered(); ImGui::PopStyleVar(2);