Browse Source

Fixed ImGui assert.

Бранимир Караџић 3 years ago
parent
commit
2215e67ee1
1 changed files with 2 additions and 2 deletions
  1. 2 2
      examples/common/example-glue.cpp

+ 2 - 2
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);