Skip to content

Bug: Shader defines cannot be set to 0 #1912

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

Merged
merged 1 commit into from
Sep 24, 2023
Merged

Conversation

einarf
Copy link
Member

@einarf einarf commented Sep 24, 2023

If we have the following define in a shader ..

#define LIGHTING_ENABLED 1

passsing defines={"LIGHTING_ENABLED": 0} duing program creation will not overrwrite the define value above because the "truthiness" of 0 is False.

@einarf einarf merged commit b505ac9 into development Sep 24, 2023
@einarf einarf deleted the define-override-zero-bug branch September 24, 2023 23:35
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.

1 participant