diff options
author | Tom Cooksey <thomas.cooksey@nokia.com> | 2009-04-17 09:04:21 (GMT) |
---|---|---|
committer | Tom Cooksey <thomas.cooksey@nokia.com> | 2009-04-17 09:04:21 (GMT) |
commit | 0b37db60b856fd146727eb621c5447aff09ffc5a (patch) | |
tree | ca32ac3fcfec1da038747ec1868ed2bc46cb0229 /src/opengl/gl2paintengineex | |
parent | fc1e97177f6ff9369fc6b14c66e5d0526741d3e7 (diff) | |
download | Qt-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.h | 2 |
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 |