]> git.sesse.net Git - movit/commitdiff
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 c46e60d20475a70fd3b721fefe3d9f3775f3d792..65c02c23e85eb69e0f788feeb074fb0609927a71 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 += "\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";
                frag_shader += "#undef FUNCNAME\n";
                if (node->incoming_links.size() == 1) {
                        frag_shader += "#undef INPUT\n";