src/opengl/gl2paintengineex/qglengineshadersource_p.h
branchRCL_3
changeset 8 3f74d0d4af4c
parent 5 d3bac044e0f0
equal deleted inserted replaced
6:dee5afe5301f 8:3f74d0d4af4c
   329 
   329 
   330 static const char* const qglslImageSrcFragmentShader = "\n\
   330 static const char* const qglslImageSrcFragmentShader = "\n\
   331     varying   highp   vec2      textureCoords; \n\
   331     varying   highp   vec2      textureCoords; \n\
   332     uniform   lowp    sampler2D imageTexture; \n\
   332     uniform   lowp    sampler2D imageTexture; \n\
   333     lowp vec4 srcPixel() \n\
   333     lowp vec4 srcPixel() \n\
   334     { \n\
   334     { \n"
   335         return texture2D(imageTexture, textureCoords); \n\
   335 #ifdef QT_OPENGL_ES_2
   336     }\n";
   336         // work-around for driver bug
       
   337         "return 1.0 * texture2D(imageTexture, textureCoords); \n"
       
   338 #else
       
   339         "return texture2D(imageTexture, textureCoords); \n"
       
   340 #endif
       
   341     "}\n";
   337 
   342 
   338 static const char* const qglslCustomSrcFragmentShader = "\n\
   343 static const char* const qglslCustomSrcFragmentShader = "\n\
   339     varying   highp   vec2      textureCoords; \n\
   344     varying   highp   vec2      textureCoords; \n\
   340     uniform   lowp    sampler2D imageTexture; \n\
   345     uniform   lowp    sampler2D imageTexture; \n\
   341     lowp vec4 customShader(lowp sampler2D texture, highp vec2 coords); \n\
   346     lowp vec4 customShader(lowp sampler2D texture, highp vec2 coords); \n\