1 /* FAIL - if-statement condition is not bool scalar */ 2 3 uniform float a; 4 5 void main() 6 { 7 if (a) 8 gl_Position = vec4(1.0, 0.0, 0.0, 1.0); 9 else 10 gl_Position = vec4(0.0, 1.0, 0.0, 1.0); 11 } 12