]> git.sesse.net Git - movit/commitdiff
Fix another #if issue, this time in dither_effect.frag. Reported by Dan Dennedy.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 7 Oct 2015 19:03:24 +0000 (21:03 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 7 Oct 2015 19:03:24 +0000 (21:03 +0200)
dither_effect.frag

index f271b633c24edea92c54ac38f626cad2d28872a6..f12530dbdd7cd904b8ae820928c66cf471259f20 100644 (file)
@@ -3,6 +3,11 @@
 // uniform vec2 PREFIX(tc_scale);
 // uniform float PREFIX(round_fac), PREFIX(inv_round_fac);
 
+// See footer.frag for details about this if statement.
+#ifndef YCBCR_ALSO_OUTPUT_RGBA
+#define YCBCR_ALSO_OUTPUT_RGBA 0
+#endif
+
 #if YCBCR_ALSO_OUTPUT_RGBA
 
 // There are two values to dither; otherwise, exactly the same as the algorithm below