Avoid swizzling on OpenGL ES when possible
authorGunnar Sletta <gunnar.sletta@digia.com>
Sat, 2 Feb 2013 09:56:03 +0000 (10:56 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Wed, 6 Feb 2013 13:34:15 +0000 (14:34 +0100)
commit2150eaa2c49fa5f996aa69980945522cf0a0f281
tree68c47900d18a971b6ab9bd571f0b483c2fd0703d
parent40a977771a62b6c89a055d5fda2a92a12828473b
Avoid swizzling on OpenGL ES when possible

Add support for APPLE_texture_format_BGRA8888,
IMG_texture_format_BGRA8888,
EXT_texture_format_BGRA8888 and EXT_bgra. The apple one acts
just like the desktop EXT_bgra one, so they need slightly
different handling than the ES extensions.

This change also has the benefit that we no longer have a dedicated
ES path.

Change-Id: Ibf6dbf7548ca16a1bada61c677181d8f809c69a2
Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
src/quick/scenegraph/util/qsgtexture.cpp