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>
| commit | 46e56c81ee20324e77cc91e3eca76fe946368804 |
| parent | b146ebf6ebbe805f0ba84b314a2b2581713a7751 |
| author | Paul Lemire <paul.lemire@kdab.com> |
| committer | Paul Lemire <paul.lemire@kdab.com> |
| commit time | Mon, 10 Aug 2020 16:57:38 +0200 |