1
0
Fork 0
mirror of https://github.com/ocornut/imgui.git synced 2026-01-12 00:14:20 +00:00

Missing assert + comments

This commit is contained in:
ocornut 2014-08-12 00:36:13 +01:00
parent ab8561e6fc
commit 150ad95bd6
2 changed files with 5 additions and 2 deletions

View file

@ -694,6 +694,7 @@ public:
static ImGuiWindow* GetCurrentWindow()
{
IM_ASSERT(GImGui.CurrentWindow != NULL); // ImGui::NewFrame() hasn't been called yet?
GImGui.CurrentWindow->Accessed = true;
return GImGui.CurrentWindow;
}