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

If scene has more than one mesh, only the last one added can be modified

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.7.0 RC
    • 5.7.0 Alpha
    • Qt3D
    • None
    • d4204e818b2f35293790a7ef0fd9a79ca92e6319

    Description

      Use attached example to repro (unzip it into qt3d examples folder). It has two identical cylinders. The lengths of cylinder meshes are updated with timer, but only the first cylinder actually shows the updated length.

      The root cause is likely that GLBuffer::bind() doesn't mark the previously bound buffer released, if another buffer is bound at the time of binding of the new buffer. This means the b->isBound() check in GraphicsContext::uploadDataToGLBuffer() reports the buffer is already bound if it has ever been bound at least once.

      Attachments

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

        Activity

          People

            seanharmer Sean Harmer
            e0348803 Miikka Heikkinen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes