src/opengl/gl2paintengineex/qglengineshadersource_p.h
changeset 19 fcece45ef507
parent 18 2f34d5167611
child 25 e24348a560a6
--- a/src/opengl/gl2paintengineex/qglengineshadersource_p.h	Fri Apr 16 15:50:13 2010 +0300
+++ b/src/opengl/gl2paintengineex/qglengineshadersource_p.h	Mon May 03 13:17:34 2010 +0300
@@ -331,9 +331,14 @@
     varying   highp   vec2      textureCoords; \n\
     uniform   lowp    sampler2D imageTexture; \n\
     lowp vec4 srcPixel() \n\
-    { \n\
-        return texture2D(imageTexture, textureCoords); \n\
-    }\n";
+    { \n"
+#ifdef QT_OPENGL_ES_2
+        // work-around for driver bug
+        "return 1.0 * texture2D(imageTexture, textureCoords); \n"
+#else
+        "return texture2D(imageTexture, textureCoords); \n"
+#endif
+    "}\n";
 
 static const char* const qglslCustomSrcFragmentShader = "\n\
     varying   highp   vec2      textureCoords; \n\