diff options
author | Rhys Weatherley <rhys.weatherley@nokia.com> | 2010-06-24 01:23:57 (GMT) |
---|---|---|
committer | Rhys Weatherley <rhys.weatherley@nokia.com> | 2010-06-24 01:23:57 (GMT) |
commit | 9de452bba5b592402ced6f20fbdc6d0b5c075416 (patch) | |
tree | 4a485a22a60daf6524670cd34b7adea50ceaa5a7 /src/gui | |
parent | 5cfa764466be6ec2b987e0694b99f1d343d55048 (diff) | |
download | Qt-9de452bba5b592402ced6f20fbdc6d0b5c075416.zip Qt-9de452bba5b592402ced6f20fbdc6d0b5c075416.tar.gz Qt-9de452bba5b592402ced6f20fbdc6d0b5c075416.tar.bz2 |
Normalize integers when calling glVertexAttribPointer()
When QGLShaderProgram::setAttributeArray() is used with a
type like GL_UNSIGNED_BYTE, it is normally going to be a
value that should be normalized to the range 0..1. But the
function wasn't normalizing, which led to errors in programs
that used per-vertex colors with the 4ub representation.
Reviewed-by: Sarah Smith
Diffstat (limited to 'src/gui')
0 files changed, 0 insertions, 0 deletions