[require]
GLSL >= 1.20

[vertex shader]
#version 120
varying vec4 color;

uniform bool[2] ub = bool[2](bool(0), bool(1));

void main()
{
  if (ub == bool[2](bool(1), bool(1))) {
    color = vec4(1, 0, 0, 1);
  } else {
    color = vec4(0, 1, 0, 1);
  }

  gl_Position = gl_Vertex;
}

[fragment shader]
#version 120
varying vec4 color;

void main()
{
  gl_FragColor = color;
}

[test]
draw rect -1 -1 2 2
probe all rgb 0 1 0
