X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=footer.frag;h=4976136abf07491c6e586fa6a9380d5878248f48;hb=f63ded271f3189d2a1996a7b22bf91017ad24865;hp=04c8e7c0eb370f226181cd81b4712a718ecdec47;hpb=865a82f44545fa48a67eda605a18315d6ea15cfd;p=movit diff --git a/footer.frag b/footer.frag index 04c8e7c..4976136 100644 --- a/footer.frag +++ b/footer.frag @@ -1,3 +1,18 @@ +// GLSL is pickier than the C++ preprocessor in if-testing for undefined +// tokens; do some fixups here to keep it happy. + +#ifndef YCBCR_OUTPUT_PLANAR +#define YCBCR_OUTPUT_PLANAR 0 +#endif + +#ifndef YCBCR_OUTPUT_SPLIT_Y_AND_CBCR +#define YCBCR_OUTPUT_SPLIT_Y_AND_CBCR 0 +#endif + +#ifndef YCBCR_ALSO_OUTPUT_RGBA +#define YCBCR_ALSO_OUTPUT_RGBA 0 +#endif + #if YCBCR_OUTPUT_PLANAR out vec4 Y; out vec4 Cb;