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

Builtin function as variable name seems legal #1

Closed
gre opened this issue May 24, 2014 · 1 comment
Closed

Builtin function as variable name seems legal #1

gre opened this issue May 24, 2014 · 1 comment

Comments

@gre
Copy link
Contributor

gre commented May 24, 2014

I don't know if this bug is in glsl-tokenizer or glsl-parser

but

  float distance = 1.0;

seems to not parse but is ok when compiling the GLSL.

I don't know what the spec say about that, if it is legal?

@chrisdickinson
Copy link
Contributor

Fixed in glsl-parser, as of v0.0.8. Thanks very much!

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

No branches or pull requests

2 participants