From: Steinar H. Gunderson Date: Mon, 13 Nov 2017 19:36:27 +0000 (+0100) Subject: There's no need to #undef PREFIX, since we do the token pasting ourselves. X-Git-Tag: 1.6.0~74 X-Git-Url: https://git.sesse.net/?p=movit;a=commitdiff_plain;h=706365ccee2ad69c5bc3608e12ca8e9ada7ce954 There's no need to #undef PREFIX, since we do the token pasting ourselves. --- diff --git a/effect_chain.cpp b/effect_chain.cpp index c46e60d..65c02c2 100644 --- a/effect_chain.cpp +++ b/effect_chain.cpp @@ -403,7 +403,6 @@ void EffectChain::compile_glsl_program(Phase *phase) frag_shader += "\n"; frag_shader += string("#define FUNCNAME ") + effect_id + "\n"; frag_shader += replace_prefix(node->effect->output_fragment_shader(), effect_id); - frag_shader += "#undef PREFIX\n"; frag_shader += "#undef FUNCNAME\n"; if (node->incoming_links.size() == 1) { frag_shader += "#undef INPUT\n";