<div dir="ltr">Hello Ilia,<br><br><br><br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">
> + }<br>
> +<br>
> + /* test always-pass paths */<br>
> + for (i = 0; i < num_paths; i++) {<br>
> + glClear(GL_COLOR_BUFFER_BIT);<br>
> +<br>
> + set_path_state(paths[i], ALWAYS_PASS);<br>
> +<br>
> + /* draw polygon */<br>
> + piglit_draw_rect(-1,-1,1,1);<br>
> +<br>
> + set_path_state(paths[i], DISABLE);<br>
> +<br>
> + /* test buffer */<br>
> + GLfloat pixel[3];<br>
> + glReadPixels(4, 4, 1, 1, GL_RGB, GL_FLOAT, pixel);<br>
> + if (pixel[0] != 1.0 || pixel[1] != 1.0 || pixel[2] != 1.0) {<br>
> + printf("\nFAIL: %s, should have had no effect"<br>
> + " (1, 1, 1) but actually modified the fragment"<br>
> + " ( %f, %f, %f)\n", path_name(paths[i]), pixel[0], pixel[1], pixel[2]);<br>
> + return PIGLIT_FAIL;<br>
<br>
</div></div>You request a double-buffered visual but you never call<br>
piglit_present_results... afaik that'll end up with an unfilled window<br>
when you run without -fbo -auto... Please double-check that case.<br>
<div><div class="h5"><br></div></div></blockquote><div>I think I will have to replace the test buffer section with piglit_probe_rect_rgb(), but you could please give a sample correction in this case?<br><br></div><div>Thanks,<br></div><div>Juliet<br></div><div> </div></div></div></div>