Skip to content

Commit

Permalink
Context: NewFrame() asserts (#1565)
Browse files Browse the repository at this point in the history
  • Loading branch information
ocornut committed Jan 21, 2018
1 parent dd89c9e commit 2026e79
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions imgui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2026e79

Please sign in to comment.