summaryrefslogtreecommitdiffstats
path: root/src/gui/rhi/qrhimetal_p.h
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@qt.io>2021-11-25 12:50:33 +0100
committerLaszlo Agocs <laszlo.agocs@qt.io>2021-11-26 14:22:05 +0100
commit99644a9e9441b0549fe2c178b34169c35036c46c (patch)
treef97b66e8077760b1c054627b0650eb88226aeebd /src/gui/rhi/qrhimetal_p.h
parentc1899ca310cbd3a4ce5e8454a01a22638beb8d73 (diff)
rhi: metal: Ignore baseInstance if not supported
A previous patch already introduced calling the correct variant of drawIndexedPrimitives, but it was not done for drawPrimitives. When base vertex and instance is not supported (e.g. on the iOS simulator), it does not mean that the value cannot be other than 0, but rather that the version of the function taking this arguments must not be called at all, otherwise a Metal failure occurs. The docs and logic is all in place, just add it to draw() as well. Amends 213755a86622ae8b3ed3d7ad34a6aecd051b2b03 which fixed this for indexed draw calls. Now we also prevent aborting Qt Quick applications that trigger non-indexed draw calls. Change-Id: Icb4313ffd2d3a77a73f7b5f49d7ce63c935254d3 Pick-to: 6.2 Task-number: QTBUG-95795 Reviewed-by: Andy Nichols <andy.nichols@qt.io>
Diffstat (limited to 'src/gui/rhi/qrhimetal_p.h')
0 files changed, 0 insertions, 0 deletions