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