Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Name conflict with --preserve-all-globals #402

Open
therontarigo opened this issue May 22, 2024 · 0 comments
Open

Name conflict with --preserve-all-globals #402

therontarigo opened this issue May 22, 2024 · 0 comments

Comments

@therontarigo
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant