If you use this code verbatim in OpenGL it won't work properly - the context needs backing up & restoring. Signposting to help users.

Yann Richeux 2023-12-20 13:35:59 +00:00
parent 4259dfd10d
commit b9ddd1cd43

@ -453,6 +453,8 @@ ImGui::UpdatePlatformWindows();
ImGui::RenderPlatformWindowsDefault(); 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... ## Once you are setup...
- Run `ImGui::ShowDemoWindow()`. Browse imgui_demo.cpp to find how things are done. - Run `ImGui::ShowDemoWindow()`. Browse imgui_demo.cpp to find how things are done.