mirror of
https://github.com/Drezil/imgui.git
synced 2025-10-08 19:01:06 +02:00
Added assert to catch users using Begin/End without a first NewFrame
This commit is contained in:
@@ -2038,6 +2038,7 @@ bool ImGui::Begin(const char* name, bool* open, ImVec2 size, float fill_alpha, I
|
||||
{
|
||||
ImGuiState& g = GImGui;
|
||||
const ImGuiStyle& style = g.Style;
|
||||
IM_ASSERT(g.Initialized); // Forgot to call ImGui::NewFrame()
|
||||
|
||||
ImGuiWindow* window = FindWindow(name);
|
||||
if (!window)
|
||||
|
Reference in New Issue
Block a user