mirror of
https://github.com/SFML/SFML.git
synced 2024-11-28 22:31:09 +08:00
Merge pull request #264 from binary1248/patch-1
Use glDeleteRenderbuffersEXT to delete m_depthBuffer
This commit is contained in:
commit
4875915b0f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user