From 663c4dc535430cde25ec39851195d76878fdceac Mon Sep 17 00:00:00 2001 From: Martin Felis Date: Mon, 3 Jul 2017 22:34:09 +0200 Subject: [PATCH] Getting closer to fixing ImGuizmo with docks --- src/modules/RenderModule.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/modules/RenderModule.cc b/src/modules/RenderModule.cc index 55d93a3..51d2035 100644 --- a/src/modules/RenderModule.cc +++ b/src/modules/RenderModule.cc @@ -1333,7 +1333,7 @@ void Renderer::resize (int x, int y, int width, int height) { cameras[i].height = static_cast(height); } - ImGuizmo::SetRect(view_offset_x, view_offset_y, view_width, view_height); + gLog ("Resizing to %d,%d size %d,%d", x, y, width, height); if (bgfx::isValid(sceneViewBuffer)) { bgfx::setViewFrameBuffer(RenderState::Skybox, sceneViewBuffer); @@ -1824,6 +1824,11 @@ void Renderer::DrawGui() { sceneViewBuffer = bgfx::createFrameBuffer( BX_COUNTOF(fbtextures), fbtextures, true ); + + ImGuizmo::SetRect( + view_offset_x, view_offset_y, + view_texture_width, view_texture_height + ); } else { ImGui::Image(sceneViewTexture,