// If this ever crash it probably means that ImGui::NewFrame() hasn't been called. We should always have a CurrentWindow in the stack (there is an implicit "Debug" window)
ImGuiState&g=*GImGui;
ImGuiState&g=*GImGui;
IM_ASSERT(g.CurrentWindow!=NULL);// ImGui::NewFrame() hasn't been called yet?