You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I switched from the master branch to the docking branch in my C++ project and now it's giving me this error which it didn't give before: Assertion failed: (g.FrameCount == 0 || g.FrameCount == g.FrameCountPlatformEnded) && "Forgot to call UpdatePlatformWindows() in main loop after EndFrame()? My config flags are set to this:
Part of the assertion message: Forgot to call UpdatePlatformWindows() in main loop after EndFrame()?
So that is probably the source of the problem already. You should take a look at the example projects of the docking branch and pay special attention to the parts that are not in the example projects of the master branch. Building the basic app framework with an example project as a reference is the usual way, so you have to adjust your implementation accordingly.
What the assert message says.. If you enable ImGuiConfigFlags_ViewportsEnable you need to be calling ImGui::UpdatePlatformWindows() and likely ImGui::RenderPlatformWindowsDefault() in your main loop. Refer to example code.
Version/Branch of Dear ImGui:
docking
Back-ends:
imgui_impl_opengl3.cpp + imgui_impl_glfw.cpp
Compiler, OS:
Windows 10 + MSVC
Full config/build information:
No response
Details:
I switched from the master branch to the docking branch in my C++ project and now it's giving me this error which it didn't give before:
Assertion failed: (g.FrameCount == 0 || g.FrameCount == g.FrameCountPlatformEnded) && "Forgot to call UpdatePlatformWindows() in main loop after EndFrame()?
My config flags are set to this:How do I fix this?
Screenshots/Video:
No response
Minimal, Complete and Verifiable Example code:
No response
The text was updated successfully, but these errors were encountered: