Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-30757

Node does not get updated in case QSGGeometry::allocate() is called with the same value as before

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • 5.0.0, 5.0.1, 5.0.2
    • Quick: SceneGraph

    Description

      Steps to reproduce (hope I did not forget anything):

      1. create a QSGGeometry with a certain vertexCount and indexCount.
      2. Fill the vertices with data.
      3. Assign the geometry to a node and let it render.

      4. Then call QSGGeometry::allocate() with the same vertexCount and indexCount.
      5. Modify the data.
      6. mark the node's geometry as dirty: node->markDirty(QSGNode::DirtyGeometry);

      Result: The updated node is not rendered.

      Workaround: insert QSGGeometry::allocate(1); between steps 3 and 4 to force a reallocation in step 4.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            sletta Gunnar Sletta
            yvedebuysscher Yve De Buysscher
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes