Getting closer to fixing ImGuizmo with docks

simple_math_single_header
Martin Felis 2017-07-03 22:34:09 +02:00
parent a3f3346f3e
commit 663c4dc535
1 changed files with 6 additions and 1 deletions

View File

@ -1333,7 +1333,7 @@ void Renderer::resize (int x, int y, int width, int height) {
cameras[i].height = static_cast<float>(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,