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

Fix renamer generating duplicate declarations in switch statements #135

Merged
merged 1 commit into from
May 7, 2022

Conversation

jwatzman
Copy link
Contributor

@jwatzman jwatzman commented May 7, 2022

The entire switch statement is considered one scope, so we need to
thread through the renamer environment so we don't generate duplicate
definitions.

It turns out the test case I added in #132 already hit this -- the
output was not valid GLSL -- but I didn't notice :(

The entire switch statement is considered one scope, so we need to
thread through the renamer environment so we don't generate duplicate
definitions.

It turns out the test case I added in laurentlb#132 already hit this -- the
output was not valid GLSL -- but I didn't notice :(
Copy link
Owner

@laurentlb laurentlb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!
It looks better, indeed

@laurentlb laurentlb merged commit 20607bc into laurentlb:master May 7, 2022
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

Successfully merging this pull request may close these issues.

None yet

2 participants