From 84c4a14dadf8d28f57068d39cfec2612c15becd1 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Tue, 29 Aug 2023 23:24:35 +0200 Subject: [PATCH] opengl: cleanup framebuffer style --- src/render/Framebuffer.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/render/Framebuffer.cpp b/src/render/Framebuffer.cpp index 7cd91a04..e5fc897d 100644 --- a/src/render/Framebuffer.cpp +++ b/src/render/Framebuffer.cpp @@ -63,13 +63,11 @@ void CFramebuffer::bind() { } void CFramebuffer::release() { - if (m_iFb != (uint32_t)-1 && m_iFb) { + if (m_iFb != (uint32_t)-1 && m_iFb) glDeleteFramebuffers(1, &m_iFb); - } - if (m_cTex.m_iTexID) { + if (m_cTex.m_iTexID) glDeleteTextures(1, &m_cTex.m_iTexID); - } m_cTex.m_iTexID = 0; m_iFb = -1;