Details
Description
Qt3D crashes when rendering triangle strip or line loop geometry that uses restart index. I set the restart index value to 0xffff (65535). Qt3D crashes inside BufferVisitor::traverseCoordinates3Indexed in buffervisitor_p.h. In the debugger (attached screenshot) you see that n is 720885 and stride is 11, which implies that indices[i] is 65535. This of course causes problems when the coordinates array is dereferenced with this index.
This must be a recent regression as my code worked previously without problems.
Attachments
For Gerrit Dashboard: QTBUG-66407 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
220285,3 | Handle primitive restart in buffer visitor | 5.11 | qt/qt3d | Status: MERGED | +2 | 0 |