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

LoadMemoryCompiledShader: ensure return false on parse failure #1302

Merged
merged 1 commit into from
Nov 19, 2020

Conversation

lgritz
Copy link
Collaborator

@lgritz lgritz commented Nov 18, 2020

Most failures in this function returned false, but if it got as far as
parsing but failed that stage, it ended up returning true (success),
which is clearly wrong.

Signed-off-by: Larry Gritz lg@larrygritz.com

Most failures in this function returned false, but if it got as far as
parsing but failed that stage, it ended up returning true (success),
which is clearly wrong.

Signed-off-by: Larry Gritz <lg@larrygritz.com>
@lgritz lgritz merged commit 6a50ea0 into AcademySoftwareFoundation:master Nov 19, 2020
@lgritz lgritz deleted the lg-compilebuffer branch November 19, 2020 01:25
lgritz added a commit to lgritz/OpenShadingLanguage that referenced this pull request Nov 19, 2020
…mySoftwareFoundation#1302)

Most failures in this function returned false, but if it got as far as
parsing but failed that stage, it ended up returning true (success),
which is clearly wrong.

Signed-off-by: Larry Gritz <lg@larrygritz.com>
Copy link

@MasterZap MasterZap left a comment

Choose a reason for hiding this comment

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

LGTM!

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.

3 participants