diff options
author | Vinson Lee <vlee@vmware.com> | 2010-04-25 10:04:28 +0200 |
---|---|---|
committer | Filippo Argiolas <filippo.argiolas@gmail.com> | 2010-04-25 10:23:13 +0200 |
commit | 239309de58f805ec26976693016427c672131935 (patch) | |
tree | 216d6508e9d9b94ff353acffe46256c0e493efa6 | |
parent | 71d90751ea9c94650953659008fb5282acce52cd (diff) |
multiply: fix a compilation error with Apple compiler
Fix multiply_fragment_source to compile with Apple GLSL compiler.
https://bugzilla.gnome.org/show_bug.cgi?id=616748
-rw-r--r-- | gst/gl/effects/gstgleffectssources.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/gl/effects/gstgleffectssources.c b/gst/gl/effects/gstgleffectssources.c index c723582..bcd9a62 100644 --- a/gst/gl/effects/gstgleffectssources.c +++ b/gst/gl/effects/gstgleffectssources.c @@ -360,7 +360,7 @@ const gchar *multiply_fragment_source = "void main () {" " vec4 basecolor = texture2DRect (base, gl_TexCoord[0].st);" " vec4 blendcolor = texture2DRect (blend, gl_TexCoord[0].st);" - " gl_FragColor = (1 - alpha) * basecolor + alpha * basecolor * blendcolor;" + " gl_FragColor = (1.0 - alpha) * basecolor + alpha * basecolor * blendcolor;" "}"; /* lut operations, map luma to tex1d, see orange book (chapter 19) */ |