4eb9987699
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) |
||
---|---|---|
.. | ||
cogl-gst-plugin.c | ||
cogl-gst-shader-private.h | ||
cogl-gst-shader.c | ||
cogl-gst-video-sink.c | ||
cogl-gst-video-sink.h | ||
cogl-gst.h | ||
cogl-gst.pc.in | ||
Makefile.am |