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
imgui.cpp after line 7850 "// Apply Position and Size (from ImGui to Platform/Renderer back-ends)"
if (!viewport->PlatformRequestMove)
g.PlatformIO.Platform_SetWindowPos(viewport, viewport->Pos);
if (!viewport->PlatformRequestResize)
g.PlatformIO.Platform_SetWindowSize(viewport, viewport->Size);
There seems to be a typo in the "platform request move/size"condition leading to continuous calls.
The text was updated successfully, but these errors were encountered:
marius-luca-87
changed the title
Platform_SetWindowPos/Renderer_SetWindowSize called continously in the docking branch
Platform_SetWindowPos/Platform_SetWindowSize called continously in the docking branch
Nov 23, 2018
ocornut
changed the title
Platform_SetWindowPos/Platform_SetWindowSize called continously in the docking branch
Platform_SetWindowPos/Platform_SetWindowSize called continously in the viewport branch
Nov 23, 2018
It is currently intentional that we call those functions every frame, currently it doesn't seem to be problematic cost wise. The back-end can freely compare last known position.
I think I'll actually add a cache to compare too on imgui side now. I was hesitant because we may run into bugs, but if that's the case I'd rather run into them on imgui side.
…#2205) + Fix GLFW ImGui_ImplGlfw_CreateWindow() from not applying position immediately. Clear LastNameHash properly (bug already fixed in Docking branch)
Revision: 2515413
Date: 22-Nov-18 16:29:18
imgui.cpp after line 7850 "// Apply Position and Size (from ImGui to Platform/Renderer back-ends)"
There seems to be a typo in the "platform request move/size"condition leading to continuous calls.
The text was updated successfully, but these errors were encountered: