diff options
author | Samuel Rødal <sroedal@trolltech.com> | 2009-08-25 14:22:09 (GMT) |
---|---|---|
committer | Samuel Rødal <sroedal@trolltech.com> | 2009-08-25 14:36:48 (GMT) |
commit | 22e2ba1e5e3345b99f41b62b9984ca6871579122 (patch) | |
tree | cdfaf0953a296ea016cba4598a521351185b0eed /src/opengl/qglpixmapfilter.cpp | |
parent | 03bfdba7d45ddbf086376a20568a49525dddf845 (diff) | |
download | Qt-22e2ba1e5e3345b99f41b62b9984ca6871579122.zip Qt-22e2ba1e5e3345b99f41b62b9984ca6871579122.tar.gz Qt-22e2ba1e5e3345b99f41b62b9984ca6871579122.tar.bz2 |
Fixed documentation and use of incorrect entry point for custom shaders.
The entry point has been changed to be customShader, taking source
image and texture coordinates as parameters.
Reviewed-by: Tom
Diffstat (limited to 'src/opengl/qglpixmapfilter.cpp')
-rw-r--r-- | src/opengl/qglpixmapfilter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/opengl/qglpixmapfilter.cpp b/src/opengl/qglpixmapfilter.cpp index 29f6440..e1ee61a 100644 --- a/src/opengl/qglpixmapfilter.cpp +++ b/src/opengl/qglpixmapfilter.cpp @@ -418,7 +418,7 @@ QByteArray QGLPixmapBlurFilter::generateBlurShader(int radius, bool gaussianBlur source.append("uniform highp vec4 clip;\n"); } - source.append("mediump vec4 customShader(sampler2D src, vec2 srcCoords) {\n"); + source.append("lowp vec4 customShader(sampler2D src, vec2 srcCoords) {\n"); QVector<qreal> sampleOffsets; QVector<qreal> weights; |