[nostalgia/scene/studio] Replace glutils::bind with glutils::FrameBufferBind
This commit is contained in:
parent
ce2ac2e29e
commit
68b6942606
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user