blob: 83d99aa6277540301ff19489668dbb06677fcf13 [file] [log] [blame]
John Kessenich69968412014-08-13 06:37:59 +00001#version 450 core
2
3in gl_PerVertex {
4 float gl_CullDistance[3];
5} gl_in[];
6
7out gl_PerVertex {
8 float gl_CullDistance[3];
9};
10
John Kessenich2184c2f2017-04-03 14:29:20 -060011layout(triangles) in;
12
John Kessenich69968412014-08-13 06:37:59 +000013void main()
14{
John Kessenich2184c2f2017-04-03 14:29:20 -060015 gl_in[3].gl_Position; // ERROR, out of range
John Kessenich69968412014-08-13 06:37:59 +000016 gl_CullDistance[2] = gl_in[1].gl_CullDistance[2];
17}