diff options
author | Eric Anholt <eric@anholt.net> | 2010-01-04 08:30:57 -0800 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2010-01-04 08:32:07 -0800 |
commit | d7fa5b26f80b6443326096f01696c08cd7575990 (patch) | |
tree | 4fdb54e0c7d0fc3d7dc37a05ec839aed67b2343a /tests/fbo/fbo-generatemipmap-npot.c | |
parent | 9c54a5c3d12e2572af90018d8e85f6f8009671f7 (diff) |
fbo-generatemipmap-npot: Fix failure return from the testcase
Reported by: Marek Olšák <maraeo@gmail.com>
Diffstat (limited to 'tests/fbo/fbo-generatemipmap-npot.c')
-rw-r--r-- | tests/fbo/fbo-generatemipmap-npot.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/tests/fbo/fbo-generatemipmap-npot.c b/tests/fbo/fbo-generatemipmap-npot.c index 6a362f8f1..15ae1d8bf 100644 --- a/tests/fbo/fbo-generatemipmap-npot.c +++ b/tests/fbo/fbo-generatemipmap-npot.c @@ -116,11 +116,15 @@ static GLboolean test_mipmap_drawing(int start_x, int start_y, int dim) { GLboolean pass = GL_TRUE; - - piglit_probe_pixel_rgb(start_x + dim / 4, start_y + dim / 4, red); - piglit_probe_pixel_rgb(start_x + dim * 3 / 4, start_y + dim / 4, green); - piglit_probe_pixel_rgb(start_x + dim / 4, start_y + dim * 3 / 4, blue); - piglit_probe_pixel_rgb(start_x + dim * 3 / 4, start_y + dim * 3 / 4, white); + int x1 = start_x + dim / 4; + int x2 = start_x + dim * 3 / 4; + int y1 = start_y + dim / 4; + int y2 = start_y + dim * 3 / 4; + + pass &= piglit_probe_pixel_rgb(x1, y1, red); + pass &= piglit_probe_pixel_rgb(x2, y1, green); + pass &= piglit_probe_pixel_rgb(x1, y2, blue); + pass &= piglit_probe_pixel_rgb(x2, y2, white); return pass; } |