From: Glenn Watson Date: Wed, 9 May 2012 01:31:45 +0000 (+1000) Subject: Fix documentation for QSGGeometry::allocate() X-Git-Tag: 071012131707~384 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2570d185355d8ad94620e99c59a0acf55eafba6c;p=profile%2Fivi%2Fqtdeclarative.git Fix documentation for QSGGeometry::allocate() 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 Reviewed-by: Alex Wilson --- diff --git a/src/quick/scenegraph/coreapi/qsggeometry.cpp b/src/quick/scenegraph/coreapi/qsggeometry.cpp index cf39c30..c4c6c4f 100644 --- a/src/quick/scenegraph/coreapi/qsggeometry.cpp +++ b/src/quick/scenegraph/coreapi/qsggeometry.cpp @@ -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) {