Make sure to destroy cached RenderCommands before QRhi
RenderCommands may own QRhi resources, so we want to destroy them before
QRhi (which may be owned by SubmissionContext). This isn't an issue with
QML because the submission context doesn't own QRhi, but that isn't the
case when using Qt3D in a non-QML application.
Pick-to: 6.12 6.11 6.8
Change-Id: Ic099cd8715614dd7bd93b9aadd07aba9f4b2fb2f
Reviewed-by: Mike Krus <mike.krus@kdab.com>
| commit | 6f16d901d08e5beef31a0051e43018108d9b2cb0 |
| parent | d61853d0de120204e279941a41ec16f4105a1d3f |
| author | Mauro Persano <mauro.persano@kdab.com> |
| committer | Mauro Persano <mauro.persano@kdab.com> |
| commit time | Wed, 12 Aug 2026 17:10:45 +0000 |