[426/906] multiply: fix a compilation error with Apple compiler
authorVinson Lee <vlee@vmware.com>
Sun, 25 Apr 2010 08:04:28 +0000 (10:04 +0200)
committerMatthew Waters <ystreet00@gmail.com>
Sat, 15 Mar 2014 17:36:39 +0000 (18:36 +0100)
Fix multiply_fragment_source to compile with Apple GLSL compiler.

https://bugzilla.gnome.org/show_bug.cgi?id=616748

gst/gl/effects/gstgleffectssources.c

index c723582..bcd9a62 100644 (file)
@@ -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) */