diff options
author | Markus Mohrhard <markus.mohrhard@collabora.co.uk> | 2014-05-24 10:41:00 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-05-24 10:48:44 +0200 |
commit | 08c1c406055f689ef70725a13770037d7d420d5b (patch) | |
tree | 81ba9b860b1fe3df4504ad05e170e00835f12d96 | |
parent | 2d3d63a3da88373e15c0218a9a417ad20db8b85a (diff) |
the destructor alreadz clears the vector
Change-Id: I085e3463251a7d73be9724ae56bd6aa3fcf50a34
-rw-r--r-- | chart2/source/view/main/GL3DRenderer.cxx | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/chart2/source/view/main/GL3DRenderer.cxx b/chart2/source/view/main/GL3DRenderer.cxx index 8112ed1ee243..f7af953294af 100644 --- a/chart2/source/view/main/GL3DRenderer.cxx +++ b/chart2/source/view/main/GL3DRenderer.cxx @@ -734,7 +734,6 @@ void OpenGL3DRenderer::RenderLine3D(Polygon3DInfo &polygon) glDrawArrays(GL_LINE_STRIP, 0, pointList->size()); glDisableVertexAttribArray(maResources.m_2DVertexID); glBindBuffer(GL_ARRAY_BUFFER, 0); - pointList->clear(); delete pointList; polygon.verticesList.pop_front(); } @@ -828,8 +827,6 @@ void OpenGL3DRenderer::RenderPolygon3D(Polygon3DInfo &polygon) glDisableVertexAttribArray(maResources.m_3DNormalID); glBindBuffer(GL_ARRAY_BUFFER, 0); - pointList->clear(); - normalList->clear(); delete pointList; delete normalList; polygon.verticesList.pop_front(); |