src/opengl/qglshaderprogram.cpp
changeset 33 3e2da88830cd
parent 30 5dc02b23752f
child 37 758a864f9613
equal deleted inserted replaced
30:5dc02b23752f 33:3e2da88830cd
  1488     (int location, GLenum type, const void *values, int tupleSize, int stride)
  1488     (int location, GLenum type, const void *values, int tupleSize, int stride)
  1489 {
  1489 {
  1490     Q_D(QGLShaderProgram);
  1490     Q_D(QGLShaderProgram);
  1491     Q_UNUSED(d);
  1491     Q_UNUSED(d);
  1492     if (location != -1) {
  1492     if (location != -1) {
  1493         glVertexAttribPointer(location, tupleSize, type, GL_FALSE,
  1493         glVertexAttribPointer(location, tupleSize, type, GL_TRUE,
  1494                               stride, values);
  1494                               stride, values);
  1495     }
  1495     }
  1496 }
  1496 }
  1497 
  1497 
  1498 /*!
  1498 /*!
  1632     (int location, GLenum type, int offset, int tupleSize, int stride)
  1632     (int location, GLenum type, int offset, int tupleSize, int stride)
  1633 {
  1633 {
  1634     Q_D(QGLShaderProgram);
  1634     Q_D(QGLShaderProgram);
  1635     Q_UNUSED(d);
  1635     Q_UNUSED(d);
  1636     if (location != -1) {
  1636     if (location != -1) {
  1637         glVertexAttribPointer(location, tupleSize, type, GL_FALSE, stride,
  1637         glVertexAttribPointer(location, tupleSize, type, GL_TRUE, stride,
  1638                               reinterpret_cast<const void *>(offset));
  1638                               reinterpret_cast<const void *>(offset));
  1639     }
  1639     }
  1640 }
  1640 }
  1641 
  1641 
  1642 /*!
  1642 /*!