laurentlb / shader-minifier

Minify and obfuscate GLSL or HLSL code

Home Page:https://ctrl-alt-test.fr/minifier/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Name conflict with --preserve-all-globals

therontarigo opened this issue · comments

With input such as

float o(vec3 q)
{
 return min(oa(q),ob(q));
}

and --preserve-all-globals option, the name might be reused for a variable, which is not valid:

e=o(c),c+=e*o;

Found in https://github.com/laurentlb/shader-minifier/blob/master/tests/real/to_the_road_of_ribbon.expected