6 /* this is a test for a bug in constructor handling in glsl2. It
7 * would evaluate the expression used in the constructor for each
8 * channel it needed to pull out.
10 vec4 color = vec4(0.0);
14 color += vec4(1.0, 1.0, 0.0, 0.0);
15 return vec2(1.0, 0.0);
20 vec4 val = vec4(get_val(), 0.0, 0.0);
23 /* If the bug is present, val is (3,2,0,0), but it should be
26 gl_FrontColor = val - vec4(2.0, 0, 0.0, 0.0);
27 gl_Position = gl_Vertex;
30 [fragment shader file]
35 probe rgb 1 1 0.0 1.0 0.0