[require] GLSL >= 1.10 [vertex shader] #version 110 #extension GL_ARB_separate_shader_objects: require in vec4 piglit_vertex; void main() { gl_Position = piglit_vertex; } [fragment shader] #version 110 #extension GL_ARB_separate_shader_objects: require uniform float k; out vec4 out_put; void main() { vec4 temp = vec4(1.5); out_put = vec4(1.5); if(k < 5.0) { do { if(k < 5.0) out_put *= temp; else break; } while(true); } else { out_put += temp; } }