If you use this code verbatim in OpenGL it won't work properly - the context needs backing up & restoring. Signposting to help users.
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.
|
||||||
|
Loading…
Reference in New Issue
Block a user