What steps will reproduce the problem?
1. Make a shader something like this
float foo(float a, float b) {
return a * b;
}
void main () {
float foo = 1.0;
float a = 2.0;
float b = 3.0;
float bar = foo(a, b);
..
}
2. Compile it
What is the expected output?
Either (a) I should get an error for foo exiting twice or (b) the function call
to "foo" should fail because at that scope, "foo" is not a function.
What do you see instead?
The code passes the validator.
Original issue reported on code.google.com by g...@chromium.org on 2 Aug 2010 at 5:20
Original issue reported on code.google.com by
g...@chromium.org
on 2 Aug 2010 at 5:20