Properly swizzle texture data before upload in QQuickPaintedItem.
authorSamuel Rødal <samuel.rodal@nokia.com>
Tue, 3 Apr 2012 10:13:02 +0000 (12:13 +0200)
committerQt by Nokia <qt-info@nokia.com>
Tue, 3 Apr 2012 10:49:14 +0000 (12:49 +0200)
commit330dbc6bba11f401c9f258aa6281dbdfebfc8602
tree4e440f9e7e89cbd3ea01fec9f4c787503a18f5f4
parent240a3cd360309c5d525b635e40b12697deca6c0e
Properly swizzle texture data before upload in QQuickPaintedItem.

We already did this properly in QSGPlainTexture, need to do it in
QSGPainterTexture as well, or red and blue channels will be swapped on
OpenGL ES 2.

Change-Id: I8b17a359b80d6c2e3b89d9c1d4c3d388a3ad1081
Reviewed-by: Kim M. Kalland <kim.kalland@nokia.com>
src/quick/scenegraph/util/qsgpainternode.cpp
src/quick/scenegraph/util/qsgtexture.cpp