[require] GLES >= 2.0 ESSL >= 1.00 [vertex shader] attribute vec4 piglit_Position; void main() { gl_Position = piglit_Position; } [fragment shader] void main() { if (gl_FrontFacing) discard; else gl_FragColor = vec4(1.0, 0.0, 0.0, 1.0); } [test] clear color 0.0 1.0 0.0 0.0 clear draw rect -1 -1 2 2 relative probe rgb (0.03, 0.25) (0.0, 1.0, 0.0)