mutter/cogl-gst
Neil Roberts 4eb9987699 cogl-gst: Don't replace previous layers in default shader
Previously, when CoglGST generated the default sampling snippet it
would set the replace string so that Cogl wouldn't generate any
redundant code for the other layers. However this also meant that it
wouldn't modulate with the default colour. This patch changes it to
set the combine mode on all of the layers to REPLACE(PREVIOUS) so that
it just copies the previous layer without generating any texture
sampling. That way the fragment snippet for the final layer can just
modulate the previous value with the video sampling function. This
makes it possible to set a color on the pipeline and have it modulate
the video. Also if we eventually add a way to insert layers before the
GST sampling layer then it can modulate with those.

Reviewed-by: Robert Bragg <robert@linux.intel.com>

(cherry picked from commit f5da8d2caf4b2fbaf6941642a5d5ea7b93d0dd0f)
2013-06-21 19:02:35 +01:00
..
cogl-gst-plugin.c cogl-gst-plugin: Use a real version number and web address 2013-06-21 19:01:35 +01:00
cogl-gst-shader-private.h Include CoglGst 2013-06-21 18:57:24 +01:00
cogl-gst-shader.c cogl-gst: Don't replace previous layers in default shader 2013-06-21 19:02:35 +01:00
cogl-gst-video-sink.c cogl-gst: Don't replace previous layers in default shader 2013-06-21 19:02:35 +01:00
cogl-gst-video-sink.h cogl-gst: Remove ‘FLOP’ 2013-06-21 19:02:15 +01:00
cogl-gst.h Include CoglGst 2013-06-21 18:57:24 +01:00
cogl-gst.pc.in cogl-gst: pedantic typo fix in pkg-config description 2013-06-21 18:59:49 +01:00
Makefile.am Include CoglGst 2013-06-21 18:57:24 +01:00