From 7f1217bfd1179d54040607837677b432ae502e82 Mon Sep 17 00:00:00 2001 From: binary1248 Date: Tue, 31 Jul 2012 03:19:50 +0300 Subject: [PATCH] Use glDeleteRenderbuffersEXT to delete m_depthBuffer --- src/SFML/Graphics/RenderTextureImplFBO.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SFML/Graphics/RenderTextureImplFBO.cpp b/src/SFML/Graphics/RenderTextureImplFBO.cpp index 7ceaae886..110bc2c0e 100644 --- a/src/SFML/Graphics/RenderTextureImplFBO.cpp +++ b/src/SFML/Graphics/RenderTextureImplFBO.cpp @@ -53,7 +53,7 @@ RenderTextureImplFBO::~RenderTextureImplFBO() if (m_depthBuffer) { GLuint depthBuffer = static_cast(m_depthBuffer); - glCheck(glDeleteFramebuffersEXT(1, &depthBuffer)); + glCheck(glDeleteRenderbuffersEXT(1, &depthBuffer)); } // Destroy the frame buffer