From b9ddd1cd431a91165d4a7d5f1dbbe0181e41a6f1 Mon Sep 17 00:00:00 2001 From: Yann Richeux Date: Wed, 20 Dec 2023 13:35:59 +0000 Subject: [PATCH] If you use this code verbatim in OpenGL it won't work properly - the context needs backing up & restoring. Signposting to help users. --- Getting-Started.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Getting-Started.md b/Getting-Started.md index 9a74449..86f5a24 100644 --- a/Getting-Started.md +++ b/Getting-Started.md @@ -453,6 +453,8 @@ ImGui::UpdatePlatformWindows(); ImGui::RenderPlatformWindowsDefault(); ``` +Note that there may be additional calls required surrounding this depending on the backend you are using (OpenGL in particular). Check the [example project](https://github.com/ocornut/imgui/tree/docking/examples) appropriate to your setup for details. + ## Once you are setup... - Run `ImGui::ShowDemoWindow()`. Browse imgui_demo.cpp to find how things are done.