Ignore:
Timestamp:
Aug 2, 2010, 9:27:30 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.6.3 sources from branches/vendor/nokia/qt.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/opengl/gl2paintengineex/qglengineshadersource_p.h

    r651 r769  
    332332    uniform   lowp    sampler2D imageTexture; \n\
    333333    lowp vec4 srcPixel() \n\
    334     { \n\
    335         return texture2D(imageTexture, textureCoords); \n\
    336     }\n";
     334    { \n"
     335#ifdef QT_OPENGL_ES_2
     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";
    337342
    338343static const char* const qglslCustomSrcFragmentShader = "\n\
    339344    varying   highp   vec2      textureCoords; \n\
    340345    uniform   lowp    sampler2D imageTexture; \n\
    341     lowp vec4 customShader(lowp sampler2D texture, highp vec2 coords); \n\
    342346    lowp vec4 srcPixel() \n\
    343347    { \n\
Note: See TracChangeset for help on using the changeset viewer.