Context: NewFrame() asserts (#1565)

This commit is contained in:
omar 2018-01-21 21:12:52 +01:00
parent dd89c9ea59
commit 2026e792cd

View File

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