-
-
Notifications
You must be signed in to change notification settings - Fork 10.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Assert when shutting down and recreating backend #2769
Comments
Please:
TL;DR; we need more context please. |
My recreating method : I don't run ImGui::DestroyContext(); / ImGui::CreateContext(); |
I think you're hitting the crash that I fixed here: #2698, at least I think you're using the vulkan backend, you should include that in reports. |
Pushed a fix for this issue. |
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;
The text was updated successfully, but these errors were encountered: