# This test contains a variety of loops that are likely to be unrolled # by the implementation, and verifies that they all execute correctly. [require] GLSL >= 1.10 [vertex shader] void main() { gl_Position = gl_Vertex; int sum = 0; int i; for (i = 1; i != 2; i++) sum += i; gl_FrontColor = vec4(0.0, sum, 0.0, 1.0); } [fragment shader] void main() { gl_FragColor = gl_Color; } [test] draw rect -1 -1 2 2 probe all rgba 0.0 1.0 0.0 1.0