X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=dither_effect.cpp;fp=dither_effect.cpp;h=6e1ddd8d8ed4b7451698fd0b9d70382560bf0c52;hb=8dedcc2fd11b00fec125212b60e144363033137d;hp=14132bd43407bda72a7d2a8ca86f785bc9e1fab1;hpb=03b416172e9db37845b8c897d51064cbc6b3aa3f;p=movit diff --git a/dither_effect.cpp b/dither_effect.cpp index 14132bd..6e1ddd8 100644 --- a/dither_effect.cpp +++ b/dither_effect.cpp @@ -45,7 +45,7 @@ DitherEffect::~DitherEffect() string DitherEffect::output_fragment_shader() { char buf[256]; - sprintf(buf, "#define NEED_EXPLICIT_ROUND %d\n", (movit_num_wrongly_rounded > 0)); + sprintf(buf, "#define NEED_EXPLICIT_ROUND %d\n", (movit_num_wrongly_rounded > 0 && movit_shader_rounding_supported)); return buf + read_file("dither_effect.frag"); }