diff --git a/src/SFML/Graphics/RenderTextureImplFBO.cpp b/src/SFML/Graphics/RenderTextureImplFBO.cpp index 7ceaae88..110bc2c0 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