summaryrefslogtreecommitdiffstats
path: root/src/opengl/qglpixmapfilter.cpp
diff options
context:
space:
mode:
authorSamuel Rødal <sroedal@trolltech.com>2009-08-25 14:22:09 (GMT)
committerSamuel Rødal <sroedal@trolltech.com>2009-08-25 14:36:48 (GMT)
commit22e2ba1e5e3345b99f41b62b9984ca6871579122 (patch)
treecdfaf0953a296ea016cba4598a521351185b0eed /src/opengl/qglpixmapfilter.cpp
parent03bfdba7d45ddbf086376a20568a49525dddf845 (diff)
downloadQt-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.cpp2
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;