Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-20811

QSGGeometry does not support GL_UNSIGNED_BYTE as index data

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.0.0
    • 5.0.0
    • Quick: SceneGraph
    • 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.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            sletta Gunnar Sletta
            sletta Gunnar Sletta
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes