diff options
author | Marek Olšák <maraeo@gmail.com> | 2010-09-29 01:46:01 +0200 |
---|---|---|
committer | Marek Olšák <maraeo@gmail.com> | 2010-09-30 19:12:37 +0200 |
commit | b19fbb79f2264ea464f7cc85d788fec457563375 (patch) | |
tree | aa686917f572ce5b78e3867f62bdd9081d9fa82c /tests/bugs | |
parent | 3efb3e820bc438588959724af066a0caf813efa6 (diff) |
fdo23670-drawpix_stencil: use piglit_probe_rect_rgb
Diffstat (limited to 'tests/bugs')
-rw-r--r-- | tests/bugs/fdo23670-drawpix_stencil.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/tests/bugs/fdo23670-drawpix_stencil.c b/tests/bugs/fdo23670-drawpix_stencil.c index 031886fae..08f8bf11a 100644 --- a/tests/bugs/fdo23670-drawpix_stencil.c +++ b/tests/bugs/fdo23670-drawpix_stencil.c @@ -44,7 +44,6 @@ piglit_display(void) { GLubyte stencil_rect[20 * 20]; int i; - int x, y; GLboolean pass = GL_TRUE; static float red[] = {1.0, 0.0, 0,0, 0.0}; static float black[] = {0.0, 0.0, 0,0, 0.0}; @@ -71,14 +70,8 @@ piglit_display(void) glRectf(50, 50, 50+20, 50+20); glDisable(GL_STENCIL_TEST); - for (x = 50; x < 50 + 20; x++) { - for (y = 50; y < 50 + 10; y++) { - pass &= piglit_probe_pixel_rgb(x, y, red); - } - for (y = 50 + 10; y < 50 + 20; y++) { - pass &= piglit_probe_pixel_rgb(x, y, black); - } - } + pass &= piglit_probe_rect_rgb(50, 50, 20, 10, red); + pass &= piglit_probe_rect_rgb(50, 60, 20, 10, black); glutSwapBuffers(); |