summaryrefslogtreecommitdiffstats
path: root/src/opengl/gl2paintengineex/qglengineshadersource_p.h
diff options
context:
space:
mode:
authorTom Cooksey <thomas.cooksey@nokia.com>2009-04-17 11:04:21 +0200
committerTom Cooksey <thomas.cooksey@nokia.com>2009-04-17 11:04:21 +0200
commit0b37db60b856fd146727eb621c5447aff09ffc5a (patch)
treeca32ac3fcfec1da038747ec1868ed2bc46cb0229 /src/opengl/gl2paintengineex/qglengineshadersource_p.h
parentfc1e97177f6ff9369fc6b14c66e5d0526741d3e7 (diff)
Fix GLSL warning & possible artifacts with radial gradients
Reviewed-by: Samuel Rødal
Diffstat (limited to 'src/opengl/gl2paintengineex/qglengineshadersource_p.h')
-rw-r--r--src/opengl/gl2paintengineex/qglengineshadersource_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/opengl/gl2paintengineex/qglengineshadersource_p.h b/src/opengl/gl2paintengineex/qglengineshadersource_p.h
index 945c56c618..3aa1a36a06 100644
--- a/src/opengl/gl2paintengineex/qglengineshadersource_p.h
+++ b/src/opengl/gl2paintengineex/qglengineshadersource_p.h
@@ -215,7 +215,7 @@ static const char* const qglslPositionWithRadialGradientBrushVertexShader = "\
gl_Position.xy = gl_Position.xy * invertedHTexCoordsZ; \
gl_Position.w = invertedHTexCoordsZ; \
A = hTexCoords.xy * invertedHTexCoordsZ; \
- b = 2.0 * fmp * (A.x + A.y); \
+ b = 2.0 * dot(A, fmp); \
}";
static const char* const qglslAffinePositionWithRadialGradientBrushVertexShader