summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/util/piglit-util-gl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/util/piglit-util-gl.c b/tests/util/piglit-util-gl.c
index 0d2b7cabd..e9c20385e 100644
--- a/tests/util/piglit-util-gl.c
+++ b/tests/util/piglit-util-gl.c
@@ -1476,7 +1476,7 @@ piglit_probe_rect_rgba_int(int x, int y, int w, int h, const int *expected)
probe = &pixels[(j*w+i)*4];
for (p = 0; p < 4; ++p) {
- if (abs(probe[p] - expected[p]) >= piglit_tolerance[p]) {
+ if (probe[p] != expected[p]) {
printf("Probe color at (%d,%d)\n", x+i, y+j);
printf(" Expected: %d %d %d %d\n",
expected[0], expected[1], expected[2], expected[3]);
@@ -1509,7 +1509,7 @@ piglit_probe_rect_rgba_uint(int x, int y, int w, int h,
probe = &pixels[(j*w+i)*4];
for (p = 0; p < 4; ++p) {
- if (abs((int) (probe[p] - expected[p])) >= piglit_tolerance[p]) {
+ if (probe[p] != expected[p]) {
printf("Probe color at (%d,%d)\n", x+i, y+j);
printf(" Expected: %u %u %u %u\n",
expected[0], expected[1], expected[2], expected[3]);