From 706365ccee2ad69c5bc3608e12ca8e9ada7ce954 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Mon, 13 Nov 2017 20:36:27 +0100 Subject: [PATCH] There's no need to #undef PREFIX, since we do the token pasting ourselves. --- effect_chain.cpp | 1 - 1 file changed, 1 deletion(-) 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"; -- 2.39.5