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

[Reg 5.15 -> 6.x] QSGGeometry::DrawLineLoop is no longer supported

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • P2: Important
    • None
    • 6.2.7, 6.4.2, 6.5.0 Beta2
    • Quick: SceneGraph
    • Windows 10 Pro 22H2, MSVC 2019 x64
    • 284238bcc (dev), 0d445e490 (6.5), 787ec49bf (6.4), 889ec8ad1 (tqtc/lts-6.2)

    Description

      https://doc.qt.io/qt-6/qsggeometry.html#DrawingMode-enum lists QSGGeometry::DrawLineLoop (== GL_LINE_LOOP == 0x02) as a drawing mode, but it doesn't work in Qt 6

       

      Steps to reproduce

      1. Build and run the graphs example https://github.com/qt/qtdeclarative/blob/v6.5.0-beta2/examples/quick/scenegraph/graph
      2. Modify linenode.cpp and replace QSGGeometry::DrawTriangleStrip with QSGGeometry::DrawLineLoop
      3. Build and run the example again

       

      Outcomes

      • Qt 5.15 applies the new mode, as expected
      • Qt 6 applies the default value, QSGGeometry::DrawTriangles, and produces a warning:
      Primitive topology 0x2 not supported
      

       

      Other notes

      Customer reported that GL_POLYGON == 0x09 also worked in Qt 5 but not in Qt 6

      Attachments

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

        Activity

          People

            lagocs Laszlo Agocs
            skoh-qt Sze Howe Koh
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes