Merge pull request #264 from binary1248/patch-1

Use glDeleteRenderbuffersEXT to delete m_depthBuffer
This commit is contained in:
Laurent Gomila 2012-07-30 23:01:59 -07:00
commit 4875915b0f

View File

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