Use glDeleteRenderbuffersEXT to delete m_depthBuffer

This commit is contained in:
binary1248 2012-07-31 03:19:50 +03:00
parent 81e4209482
commit 7f1217bfd1

View File

@ -53,7 +53,7 @@ RenderTextureImplFBO::~RenderTextureImplFBO()
if (m_depthBuffer)
{
GLuint depthBuffer = static_cast<GLuint>(m_depthBuffer);
glCheck(glDeleteFramebuffersEXT(1, &depthBuffer));
glCheck(glDeleteRenderbuffersEXT(1, &depthBuffer));
}
// Destroy the frame buffer