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
-
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...