summaryrefslogtreecommitdiffstats
path: root/examples/opengl
diff options
context:
space:
mode:
authorRhys Weatherley <rhys.weatherley@nokia.com>2009-09-08 11:43:41 +1000
committerRhys Weatherley <rhys.weatherley@nokia.com>2009-09-08 11:43:41 +1000
commitea19e075c7eb34a6a7979fa3cfb2dcc838d33c11 (patch)
tree4646ddf73ceb73331a80184c4b91e0d622eefee9 /examples/opengl
parent7b7e776d9042fa34a17db3189af99efb7494d070 (diff)
Texture format must be GL_RGB when pixel type is GL_UNSIGNED_SHORT_5_6_5
QImage::Format_RGB16 textures were broken on some OpenGL/ES 1.1 systems because the "format" was set to GL_RGBA and the "texture_format" was set to GL_RGB, with a pixel type of GL_UNSIGNED_SHORT_5_6_5. OpenGL/ES 1.1, ES 2.0, and desktop GL all require the two format parameters to glTexImage2D() to be GL_RGB if the pixel type is GL_UNSIGNED_SHORT_5_6_5. Reviewed-by: Sarah Smith
Diffstat (limited to 'examples/opengl')
0 files changed, 0 insertions, 0 deletions