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

[spv-out] Add check for global variables if name is set #225

Merged
merged 1 commit into from
Oct 5, 2020

Conversation

Napokue
Copy link
Collaborator

@Napokue Napokue commented Oct 4, 2020

Add check if name for global variables is set. When the debug flag is set for spv-out, OpName would be added for the global variable. It can happen, for instance when having a uniform variable, that the name is not set.

As the code always called unwrap when the debug flag was enabled, the code crashed.

This bug was found in issue: #210.

@Napokue Napokue requested a review from kvark October 4, 2020 13:07
src/back/spv/writer.rs Outdated Show resolved Hide resolved
@Napokue Napokue force-pushed the spv-out-global-var-name-check branch from 4d1d5ba to f35f176 Compare October 5, 2020 07:08
Copy link
Member

@kvark kvark left a comment

Choose a reason for hiding this comment

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

Thank you!

@kvark kvark merged commit 99f829b into gfx-rs:master Oct 5, 2020
@Napokue Napokue deleted the spv-out-global-var-name-check branch October 5, 2020 13:44
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.

2 participants