From 68b6942606cae55fdae97e3e716e46cff509b6b7 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Fri, 2 Jun 2023 20:29:17 -0500 Subject: [PATCH] [nostalgia/scene/studio] Replace glutils::bind with glutils::FrameBufferBind --- src/nostalgia/scene/studio/sceneeditorview.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/nostalgia/scene/studio/sceneeditorview.cpp b/src/nostalgia/scene/studio/sceneeditorview.cpp index 5305c57aa..cd253ea73 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 {