Fix documentation for QSGGeometry::allocate()
authorGlenn Watson <glenn.watson@nokia.com>
Wed, 9 May 2012 01:31:45 +0000 (11:31 +1000)
committerQt by Nokia <qt-info@nokia.com>
Wed, 16 May 2012 05:22:56 +0000 (07:22 +0200)
Make clear in the documentation that client code must dirty the
geometry node that contains the geometry class, to allow the
renderer implementation to update internal buffers.

Change-Id: I5cfddee1d0969410d7b3175c381679bd9083cc2b
Reviewed-by: Damian Jansen <damian.jansen@nokia.com>
Reviewed-by: Alex Wilson <alex.wilson@nokia.com>
src/quick/scenegraph/coreapi/qsggeometry.cpp

index cf39c30..c4c6c4f 100644 (file)
@@ -302,6 +302,9 @@ void QSGGeometry::setLineWidth(float w)
     vertices and \a indexCount indices.
 
     Vertex and index data will be invalidated after this call and the caller must
+    mark the associated geometry node as dirty, by calling
+    node->markDirty(QSGNode::DirtyGeometry) to ensure that the renderer has
+    a chance to update internal buffers.
  */
 void QSGGeometry::allocate(int vertexCount, int indexCount)
 {