glsl-array-bounds: set out-of-bounds array index inside shader
[piglit.git] / tests / shaders / glsl-algebraic-add-add-4.shader_test
blob2785e9e06b5258d358d2730244eec0d5272fa7a8
1 [require]
2 GLSL >= 1.10
4 [vertex shader]
5 void main()
7         gl_Position = gl_Vertex;
10 [fragment shader]
11 uniform vec4 color;
12 uniform float add;
13 void main()
15         gl_FragColor = ((1.0 + color) + add) + -0.5;
18 [test]
19 uniform float add -0.5
20 uniform vec4 color 0.0 1.0 0.0 0.0
21 draw rect -1 -1 2 2
22 probe all rgba 0.0 1.0 0.0 0.0