7 * From the GLSL 1.10 spec section 7.6 (Varying Variables):
9 * As with all arrays, indices used to subscript gl_TexCoord must
10 * either be an integral constant expressions, or this array must be
11 * re-declared by the shader with a size. The size can be at most
12 * gl_MaxTextureCoords.
14 * This implies that when gl_TexCoord is implicitly sized, it must not
15 * be accessed with integral constant expressions larger than (or
16 * equal to) gl_MaxTextureCoords.
18 * This test checks that the an error occurs when the size of
19 * gl_TexCoord is implicit, and we try to access a non-existent
20 * element (gl_TexCoord[gl_MaxTextureCoords]) using an integral
21 * constant expression.
25 gl_FragColor = gl_TexCoord[gl_MaxTextureCoords];