IM_ASSERT(GImGui!=NULL&&"No current context. Did you call ImGui::CreateContext() or ImGui::SetCurrentContext()?");
IM_ASSERT(GImGui!=NULL&&"No current context. Did you call ImGui::CreateContext() or ImGui::SetCurrentContext()?");
ImGuiContext&g=*GImGui;
ImGuiContext&g=*GImGui;
#ifdef IMGUI_ENABLE_TEST_ENGINE_HOOKS
ImGuiTestEngineHook_PreNewFrame();
#endif
// Check user data
// Check user data
// (We pass an error message in the assert expression to make it visible to programmers who are not using a debugger, as most assert handlers display their argument)
// (We pass an error message in the assert expression to make it visible to programmers who are not using a debugger, as most assert handlers display their argument)
IM_ASSERT(g.Initialized);
IM_ASSERT(g.Initialized);
@ -3265,6 +3282,10 @@ void ImGui::NewFrame()
// We don't use "Debug" to avoid colliding with user trying to create a "Debug" window with custom flags.
// We don't use "Debug" to avoid colliding with user trying to create a "Debug" window with custom flags.