There's no need to #undef PREFIX, since we do the token pasting ourselves.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Mon, 13 Nov 2017 19:36:27 +0000 (20:36 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Mon, 13 Nov 2017 19:36:27 +0000 (20:36 +0100)
effect_chain.cpp

index c46e60d..65c02c2 100644 (file)
@@ -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";