Ensure End() is called after Begin/BeginChild, regardless of return value

Note this is not required for other Begin apis
This commit is contained in:
Anthony 2022-03-12 09:53:22 +13:00
parent feb1f0383d
commit baa1cf5470
1 changed files with 3 additions and 4 deletions

View File

@ -150,11 +150,10 @@ void DSound_DrawBufferVisualization(bool is_focus, bool* p_show, ImGuiWindowFlag
ImGui::PopID();
}
ImGui::EndChild();
}
ImGui::End();
ImGui::EndChild();
}
ImGui::End();
}
void DSound_PrintStats(bool is_focus, ImGuiWindowFlags input_handler, bool m_show_audio_stats)
@ -252,7 +251,7 @@ void DSound_PrintStats(bool is_focus, ImGuiWindowFlags input_handler, bool m_sho
ImGui::Text("Total active DSStream = %u", isActive);
}
}
ImGui::End();
}
ImGui::End();
}
}