RHI: fix face index for texture upload
Needs to be an index between 0 - 5 and not the GL enum value.
Fixes crash when QAbstractTexture::updateData is called. Other code
paths that use Texture Images already had that fix in.
Change-Id: I2390d71e23d8d481e3d212942dd11a4fd31958ef
Reviewed-by: Mike Krus <mike.krus@kdab.com>
| commit | 274e15a01111562873570746b115ef8a264ba0f9 |
| parent | 1ca56df0482c711cb980c62a5fb50fdfe7728711 |
| author | Paul Lemire <paul.lemire@kdab.com> |
| committer | Paul Lemire <paul.lemire@kdab.com> |
| commit time | Tue, 20 Oct 2020 14:30:21 +0200 |