Skip to content

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.

2 participants