-
-
Notifications
You must be signed in to change notification settings - Fork 11.6k
Closed
Labels
Description
Version/Branch of Dear ImGui:
Version: 1.73
Branch: viewport
Back-end/Renderer/Compiler/OS
Back-ends: imgui_impl_win32.cpp
Compiler: msvc_v142
Operating System: win10
My Issue/Question:
I implement a graphic library that it can change APIs in runtime.
But it always assert when recreating imgui.
I modified it below, but it's not a good method.
Has any good idea to resolve this assert?
Standalone, minimal, complete and verifiable example:
-- ImGuiViewport* main_viewport = ImGui::GetMainViewport();
++ ImGuiViewportP* main_viewport = (ImGuiViewportP*)ImGui::GetMainViewport();
++ main_viewport->PlatformWindowCreated = true;
Reactions are currently unavailable