[nostalgia] Make drawMainView render size seting come from function param

This commit is contained in:
2023-06-02 00:54:39 -05:00
parent 022f148701
commit db3f29d52f
4 changed files with 14 additions and 35 deletions
@@ -23,8 +23,7 @@ void SceneEditorView::draw(int width, int height) noexcept {
glutils::resizeInitFrameBuffer(&m_frameBuffer, width, height);
}
glutils::bind(m_frameBuffer);
core::gl::setRenderSize(m_cctx.get(), width, height);
core::gl::drawMainView(m_cctx.get());
core::gl::drawMainView(m_cctx.get(), {width, height});
glBindFramebuffer(GL_FRAMEBUFFER, 0);
}