summaryrefslogtreecommitdiffstats
path: root/examples/opengl/doc/src/cube.qdoc
diff options
context:
space:
mode:
Diffstat (limited to 'examples/opengl/doc/src/cube.qdoc')
-rw-r--r--examples/opengl/doc/src/cube.qdoc4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/opengl/doc/src/cube.qdoc b/examples/opengl/doc/src/cube.qdoc
index e6b2548cd1..ed1390db1a 100644
--- a/examples/opengl/doc/src/cube.qdoc
+++ b/examples/opengl/doc/src/cube.qdoc
@@ -117,7 +117,9 @@
aren't facing towards screen.
Creating vertex buffer objects and transferring data to them is quite simple using
- OpenGL provided functions.
+ QOpenGLBuffer. MainWidget makes sure the GeometryEngine instance is created and
+ destroyed with the OpenGL context current. This way we can use OpenGL resources
+ in the constructor and perform proper cleanup in the destructor.
\snippet cube/geometryengine.cpp 0