summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@collabora.co.uk>2014-05-21 02:09:11 +0200
committerMarkus Mohrhard <markus.mohrhard@collabora.co.uk>2014-05-21 02:09:11 +0200
commit19979ae27055cb910bfc368bfc2899d211f56be1 (patch)
tree761b9a8ebbb494cb2a5aaf4c5745f9f0c6cd0bed
parent61b2ae31c6642e09b3052599ae22077e8d41eabd (diff)
forgot to release the OpenGL resources
Change-Id: I2baefbe611f9ed28defc46ca3af332d13b32c561
-rw-r--r--chart2/source/view/main/GL3DRenderer.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/chart2/source/view/main/GL3DRenderer.cxx b/chart2/source/view/main/GL3DRenderer.cxx
index cea7e0fde7fc..cf75ea63e188 100644
--- a/chart2/source/view/main/GL3DRenderer.cxx
+++ b/chart2/source/view/main/GL3DRenderer.cxx
@@ -110,6 +110,10 @@ OpenGL3DRenderer::~OpenGL3DRenderer()
glDeleteBuffers(1, &m_RenderVertexBuf);
glDeleteBuffers(1, &m_3DUBOBuffer);
glDeleteBuffers(1, &m_VertexBuffer);
+
+ glDeleteFramebuffers(1, &mnPickingFbo);
+ glDeleteRenderbuffers(1, &mnPickingRbo);
+ glDeleteTextures(1, &mnPickingTexture);
}
void OpenGL3DRenderer::ShaderResources::LoadShaders()