1 # Try accessing more vertices than are available in gs and check for link error.
3 # ARB_geometry_shader4 spec 4.3.6:
4 # "It is illegal to index these varying arrays, or in the case of two-
5 # dimensional arrays, the first range of the array, with a negative integral
6 # constant expression or an integral constant expression greater than or
7 # equal to gl_VerticesIn. A link error will occur in these cases."
11 GL_ARB_geometry_shader4
16 attribute vec4 vertex;
25 #extension GL_ARB_geometry_shader4: enable
29 gl_Position = gl_PositionIn[2];
43 gl_FragColor = vec4(0.0, 1.0, 0.0, 1.0);