[nostalgia] Make drawMainView render size seting come from function param
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user