Skip to content

Commit 30420b7

Browse files
kmqwertyAdrien GIVRY
andauthored
compact AView.cpp
Co-authored-by: Adrien GIVRY <adrien@givry.pro>
1 parent bdf6c6b commit 30420b7

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

  • Sources/Overload/OvEditor/src/OvEditor/Panels

Sources/Overload/OvEditor/src/OvEditor/Panels/AView.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,7 @@ void OvEditor::Panels::AView::Render()
5050

5151
EDITOR_CONTEXT(shapeDrawer)->SetViewProjection(m_camera.GetProjectionMatrix() * m_camera.GetViewMatrix());
5252

53-
auto& baseRenderer = *EDITOR_CONTEXT(renderer).get();
54-
55-
baseRenderer.SetViewPort(0, 0, winWidth, winHeight);
53+
EDITOR_CONTEXT(renderer)->SetViewPort(0, 0, winWidth, winHeight);
5654

5755
_Render_Impl();
5856
}
@@ -115,4 +113,3 @@ void OvEditor::Panels::AView::PrepareCamera()
115113
auto [winWidth, winHeight] = GetSafeSize();
116114
m_camera.CacheMatrices(winWidth, winHeight, m_cameraPosition, m_cameraRotation);
117115
}
118-

0 commit comments

Comments
 (0)