Parser: Redeclaration of gl_CullDistance is disallowed mistakenly.

This commit is contained in:
Rex Xu
2016-05-19 07:10:01 +08:00
parent 9af54c3337
commit 3d9165fde4
4 changed files with 59 additions and 6 deletions

View File

@@ -47,3 +47,10 @@ void foo()
s += imageSamples(i2dmsa);
float f = imageAtomicExchange(i2dmsa, ivec3(in3), 2, 4.5);
}
in float gl_CullDistance[6];
float cull(int i)
{
return (i >= 6) ? gl_CullDistance[5] : gl_CullDistance[i];
}