Explorar o código

Context: NewFrame() asserts (#1565)

omar %!s(int64=7) %!d(string=hai) anos
pai
achega
2026e792cd
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      imgui.cpp

+ 1 - 0
imgui.cpp

@@ -2300,6 +2300,7 @@ ImDrawListSharedData* ImGui::GetDrawListSharedData()
 
 void ImGui::NewFrame()
 {
+    IM_ASSERT(GImGui != NULL && "No current context. Did you call ImGui::CreateContext() or ImGui::SetCurrentContext()?");
     ImGuiContext& g = *GImGui;
 
     // Check user data