diff options
author | Glenn Watson <glenn.watson@nokia.com> | 2012-05-09 11:31:45 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-05-16 07:22:56 +0200 |
commit | 2570d185355d8ad94620e99c59a0acf55eafba6c (patch) | |
tree | 6024255daa79175cecaf7b7d40855ad0046b3a3f /src/quick/scenegraph | |
parent | ea13e0cf3faa3d397deb54a3f213e6a627745f0f (diff) |
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 <damian.jansen@nokia.com>
Reviewed-by: Alex Wilson <alex.wilson@nokia.com>
Diffstat (limited to 'src/quick/scenegraph')
-rw-r--r-- | src/quick/scenegraph/coreapi/qsggeometry.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/quick/scenegraph/coreapi/qsggeometry.cpp b/src/quick/scenegraph/coreapi/qsggeometry.cpp index cf39c308e7..c4c6c4f355 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) { |