diff options
Diffstat (limited to 'tests/spec')
-rw-r--r-- | tests/spec/arb_clear_texture/clear-max-level.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/spec/arb_clear_texture/clear-max-level.c b/tests/spec/arb_clear_texture/clear-max-level.c index be14898cb..91e50142d 100644 --- a/tests/spec/arb_clear_texture/clear-max-level.c +++ b/tests/spec/arb_clear_texture/clear-max-level.c @@ -86,7 +86,7 @@ test_clear(GLint maxLevel) if (!piglit_check_gl_error(GL_NO_ERROR)) return false; for (i = 0; i < 4 * w * h; i++) { - if (texData[i] != expected) { + if (fabsf(texData[i] - expected) > 0.01) { printf("Failure:\n"); printf("\tmipmap level %d, pixel %d\n", l, i / 4); |