GLSL: Fix #1358: Support "struct name", where name could be a user type
This commit is contained in:
13
Test/110scope.vert
Normal file → Executable file
13
Test/110scope.vert
Normal file → Executable file
@@ -71,4 +71,17 @@ void main()
|
||||
|
||||
int degrees;
|
||||
degrees(3.2);
|
||||
|
||||
{
|
||||
S s;
|
||||
s.x = 3;
|
||||
struct S { // okay, hides S
|
||||
bool b;
|
||||
};
|
||||
S t;
|
||||
t.b = true;
|
||||
struct S { // ERROR, redefinition of struct S
|
||||
float f;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user