rhi: compute correct attribute stride if set to 0


OpenGL works with a stride of 0 where it assumes tight packing. Other
graphics APIs don't accept that.

Change-Id: I0f7a94c41543271300a8f0eff4a32b97aa3d297d
Reviewed-by: Mike Krus <mike.krus@kdab.com>
commit46e56c81ee20324e77cc91e3eca76fe946368804
parentb146ebf6ebbe805f0ba84b314a2b2581713a7751
authorPaul Lemire <paul.lemire@kdab.com>
committerPaul Lemire <paul.lemire@kdab.com>
commit timeMon, 10 Aug 2020 16:57:38 +0200