Skip to content

Commit

Permalink
Copy data outside the ifdef.
Browse files Browse the repository at this point in the history
  • Loading branch information
jdumas committed Mar 13, 2024
1 parent be86cae commit 5293106
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/polyscope.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -185,10 +185,9 @@ void pushContext(std::function<void()> callbackFunction, bool drawDefaultUI) {
#ifdef IMGUI_HAS_DOCK
// Propagate GLFW window handle to new context
ImGui::GetMainViewport()->PlatformHandle = oldPlatformIO.Viewports[0]->PlatformHandle;
#else
#endif
ImGui::GetIO().BackendPlatformUserData = oldIO.BackendPlatformUserData;
ImGui::GetIO().BackendRendererUserData = oldIO.BackendRendererUserData;
#endif

if (options::configureImGuiStyleCallback) {
options::configureImGuiStyleCallback();
Expand Down

0 comments on commit 5293106

Please sign in to comment.