2
0
Эх сурвалжийг харах

Context: NewFrame() asserts (#1565)

omar 7 жил өмнө
parent
commit
2026e792cd
1 өөрчлөгдсөн 1 нэмэгдсэн , 0 устгасан
  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