Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.2.7, 6.4.2, 6.5.0 Beta2
-
Windows 10 Pro 22H2, MSVC 2019 x64
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
- Build and run the graphs example https://github.com/qt/qtdeclarative/blob/v6.5.0-beta2/examples/quick/scenegraph/graph
- Modify linenode.cpp and replace QSGGeometry::DrawTriangleStrip with QSGGeometry::DrawLineLoop
- 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