From a73125badaeb0c5848934a829b7f1465827d0e88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20R=C3=B8dal?= Date: Tue, 17 Apr 2012 08:50:47 +0200 Subject: Fixed RGBA <-> BGRA bug in EGLFS backingstore. Better to swizzle in the fragment shader than to do a byte swapping operation on the CPU. Change-Id: I01420c3a5ceb5309f5648e1f86979b025bdd88aa Reviewed-by: Donald Carr Reviewed-by: Girish Ramakrishnan --- src/plugins/platforms/eglfs/qeglfsbackingstore.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins/platforms/eglfs/qeglfsbackingstore.cpp') diff --git a/src/plugins/platforms/eglfs/qeglfsbackingstore.cpp b/src/plugins/platforms/eglfs/qeglfsbackingstore.cpp index 48ac680043..29559dd6a4 100644 --- a/src/plugins/platforms/eglfs/qeglfsbackingstore.cpp +++ b/src/plugins/platforms/eglfs/qeglfsbackingstore.cpp @@ -100,7 +100,7 @@ void QEglFSBackingStore::flush(QWindow *window, const QRegion ®ion, const QPo "uniform sampler2D texture;\n" "varying highp vec2 textureCoord;\n" "void main() {\n" - " gl_FragColor = texture2D(texture, textureCoord);\n" + " gl_FragColor = texture2D(texture, textureCoord).bgra;\n" "}\n"; m_program = new QOpenGLShaderProgram; -- cgit v1.2.3