summaryrefslogtreecommitdiffstats
path: root/examples/opengl/cube/geometryengine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/opengl/cube/geometryengine.cpp')
-rw-r--r--examples/opengl/cube/geometryengine.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/opengl/cube/geometryengine.cpp b/examples/opengl/cube/geometryengine.cpp
index d8dfeab822..277a6e9cfc 100644
--- a/examples/opengl/cube/geometryengine.cpp
+++ b/examples/opengl/cube/geometryengine.cpp
@@ -49,14 +49,13 @@ struct VertexData
QVector2D texCoord;
};
-GeometryEngine::GeometryEngine() : vboIds(new GLuint[2])
+GeometryEngine::GeometryEngine()
{
}
GeometryEngine::~GeometryEngine()
{
glDeleteBuffers(2, vboIds);
- delete[] vboIds;
}
void GeometryEngine::init()