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

Some Qt OpenGL functions have wrong data types

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P5: Not important
    • None
    • 4.8.5, 5.0.0, 5.0.1, 5.0.2, 5.1.0 , 5.1.1
    • GUI: OpenGL
    • None
    • All

    Description

      The convenience functions / wrappers e.g. in QGLShaderProgram/QOpenGLShaderProgram have data types different that their OpenGL counterparts.

      In both
      http://www.opengl.org/sdk/docs/man2/xhtml/glBindAttribLocation.xml
      and
      http://www.opengl.org/sdk/docs/man4/xhtml/glBindAttribLocation.xml
      glBindAttribLocation() specifies the datatype of the index as GLuint, but
      QOpenGLShaderProgram::bindAttributeLocation() expects an int for the location and
      QOpenGLShaderProgram::attributeLocation() returns an int as the location.

      If I'm not mistaken, this is a bad idea in general...

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes