1 # This tests unrolling of a loop with a single exit point.
3 # Here we test that control flow nested inside the limiting terminator is
11 gl_Position = gl_Vertex;
13 vec4 colour = vec4(1.0, 0.0, 0.0, 1.0);
16 int j = 0; // we use this so the if doesn't get reduced to a series of bcsel
23 colour = vec4(0.0, 1.0, 0.0, 1.0);
26 colour = vec4(1.0, 0.0, 1.0, 1.0);
28 colour = vec4(1.0, 1.0, 0.0, 1.0);
47 gl_FrontColor = colour;
53 gl_FragColor = gl_Color;
57 clear color 0.5 0.5 0.5 0.5
60 probe all rgba 0.0 1.0 0.0 1.0