diff --git a/src/nostalgia/scene/studio/sceneeditorview.cpp b/src/nostalgia/scene/studio/sceneeditorview.cpp index 5305c57a..cd253ea7 100644 --- a/src/nostalgia/scene/studio/sceneeditorview.cpp +++ b/src/nostalgia/scene/studio/sceneeditorview.cpp @@ -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 {