Get rid of legacy glTexParameterf calls.
authorSamuel Rødal <samuel.rodal@nokia.com>
Fri, 21 Oct 2011 10:31:43 +0000 (12:31 +0200)
committerQt by Nokia <qt-info@nokia.com>
Fri, 28 Oct 2011 10:14:10 +0000 (12:14 +0200)
commit77d30df7e546fecbefaccb6435f8ee9d53639cac
treeaa998a1d34d27456f5ad87efa513679ed3aead7e
parent0b77a19394725373bb8d23e9b240c85a4714ed1d
Get rid of legacy glTexParameterf calls.

ES 1.0 didn't have glTexParameteri, which is why we sometimes used
glTexParameterf. However, we shouldn't use glTexParameterf because
that's treating integer values as floating point, which is not type
safe. ES 1.1+ and ES 2.x have glTexParameteri, and we don't really care
about supporting ES 1.0 in any case in Qt 5.

Change-Id: I6b586b31ddc418ba319c4cc88f6bb3978fdbd040
Reviewed-by: Kim M. Kalland <kim.kalland@nokia.com>
examples/opengl/cube/mainwidget.cpp
examples/opengl/hellogl_es2/glwidget.cpp
src/gui/opengl/qopenglframebufferobject.cpp
src/gui/opengl/qopenglpaintengine.cpp
src/gui/opengl/qopengltextureglyphcache.cpp
src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp
src/opengl/gl2paintengineex/qtextureglyphcache_gl.cpp
src/opengl/qgl.cpp
src/opengl/qglframebufferobject.cpp