Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.0.0
-
None
-
e5a93d6ea1c9eb9982e98a6a5b1f52719fe446e6
Description
Desktop GL allows three types of indices to be passed to glDrawElements()
- GL_UNSIGNED_INT
- GL_UNSIGNED_SHORT
- GL_UNSIGNED_BYTE
OpenGL ES 2.0 allows only two types:
- GL_UNSIGNED_SHORT
- GL_UNSIGNED_BYTE
On our QSGGeometry class we have code to handle GL_UNSIGEND_SHORT and GL_UNSIGNED_INT, but not GL_UNSIGNED_BYTE. Updates must also be reflected in renderer where the type of the index data is used.