diff options
author | Rhys Weatherley <rhys.weatherley@nokia.com> | 2009-12-08 01:02:46 (GMT) |
---|---|---|
committer | Rhys Weatherley <rhys.weatherley@nokia.com> | 2009-12-08 01:02:46 (GMT) |
commit | 05d4b4c72a5089885c1515833e34177607c2c511 (patch) | |
tree | 814938ffa6d3394bc82d4135c40e9727a9aaf5eb /src/gui/graphicsview | |
parent | ac90a37e5bec3c5b6cdc01a836f8e562395a3863 (diff) | |
download | Qt-05d4b4c72a5089885c1515833e34177607c2c511.zip Qt-05d4b4c72a5089885c1515833e34177607c2c511.tar.gz Qt-05d4b4c72a5089885c1515833e34177607c2c511.tar.bz2 |
Fix GL_BGRA formats under OpenGL/ES systems
OpenGL/ES requires that the internal and external formats be the
same when calling glTexImage2D(). This caused problems with
devices that had the GL_EXT_bgra extension.
This change makes the formats the same just before the upload and
also makes sure that the pixel type is GL_UNSIGNED_BYTE when
GL_BGRA is used. No change for desktop systems.
Reviewed-by: Donald Carr
Diffstat (limited to 'src/gui/graphicsview')
0 files changed, 0 insertions, 0 deletions