[nostalgia/scene/studio] Replace glutils::bind with glutils::FrameBufferBind

This commit is contained in:
Gary Talent 2023-06-02 20:29:17 -05:00
parent ce2ac2e29e
commit 68b6942606

View File

@ -22,9 +22,8 @@ void SceneEditorView::draw(int width, int height) noexcept {
if (width != m_frameBuffer.width || height != m_frameBuffer.height) {
glutils::resizeInitFrameBuffer(&m_frameBuffer, width, height);
}
glutils::bind(m_frameBuffer);
glutils::FrameBufferBind frameBufferBind(m_frameBuffer);
core::gl::drawMainView(m_cctx.get(), {width, height});
glBindFramebuffer(GL_FRAMEBUFFER, 0);
}
const glutils::FrameBuffer &SceneEditorView::framebuffer() const noexcept {