summaryrefslogtreecommitdiffstats
path: root/src/opengl/gl2paintengineex
diff options
context:
space:
mode:
authorTom Cooksey <thomas.cooksey@nokia.com>2009-04-17 09:04:21 (GMT)
committerTom Cooksey <thomas.cooksey@nokia.com>2009-04-17 09:04:21 (GMT)
commit0b37db60b856fd146727eb621c5447aff09ffc5a (patch)
treeca32ac3fcfec1da038747ec1868ed2bc46cb0229 /src/opengl/gl2paintengineex
parentfc1e97177f6ff9369fc6b14c66e5d0526741d3e7 (diff)
downloadQt-0b37db60b856fd146727eb621c5447aff09ffc5a.zip
Qt-0b37db60b856fd146727eb621c5447aff09ffc5a.tar.gz
Qt-0b37db60b856fd146727eb621c5447aff09ffc5a.tar.bz2
Fix GLSL warning & possible artifacts with radial gradients
Reviewed-by: Samuel Rødal
Diffstat (limited to 'src/opengl/gl2paintengineex')
-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 945c56c..3aa1a36 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