From 2570d185355d8ad94620e99c59a0acf55eafba6c Mon Sep 17 00:00:00 2001 From: Glenn Watson Date: Wed, 9 May 2012 11:31:45 +1000 Subject: [PATCH] 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 --- src/quick/scenegraph/coreapi/qsggeometry.cpp | 3 +++ 1 file changed, 3 insertions(+) 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) { -- 2.7.4