Răsfoiți Sursa

Example fix PopStyleVar on Vertical Slider to avoid assertion

Adding an explicit ImGui::PopStyleVar to avoid assertion in
CheckStacksSize
Stefano Cristiano 10 ani în urmă
părinte
comite
99a1a85f1f
1 a modificat fișierele cu 1 adăugiri și 0 ștergeri
  1. 1 0
      imgui.cpp

+ 1 - 0
imgui.cpp

@@ -10345,6 +10345,7 @@ void ImGui::ShowTestWindow(bool* opened)
                 ImGui::PopID();
             }
             ImGui::PopID();
+            ImGui::PopStyleVar();
 
             ImGui::Indent();
             ImGui::TreePop();