Explorar o código

Example fix PopStyleVar on Vertical Slider to avoid assertion

Adding an explicit ImGui::PopStyleVar to avoid assertion in
CheckStacksSize
Stefano Cristiano %!s(int64=10) %!d(string=hai) anos
pai
achega
99a1a85f1f
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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();