summaryrefslogtreecommitdiff
path: root/tests/spec/arb_color_buffer_float/probepixel.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/spec/arb_color_buffer_float/probepixel.c')
-rw-r--r--tests/spec/arb_color_buffer_float/probepixel.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/spec/arb_color_buffer_float/probepixel.c b/tests/spec/arb_color_buffer_float/probepixel.c
index 74eb08649..b5af7ed5a 100644
--- a/tests/spec/arb_color_buffer_float/probepixel.c
+++ b/tests/spec/arb_color_buffer_float/probepixel.c
@@ -37,13 +37,17 @@
GLboolean test()
{
GLboolean pass = GL_TRUE;
+ unsigned read_clamp;
for(read_clamp = 0; read_clamp < 3; ++read_clamp)
{
unsigned clamped = clamp_enums[read_clamp] == GL_TRUE || (clamp_enums[read_clamp] == GL_FIXED_ONLY_ARB && fixed);
unsigned x, y;
+ float* expected;
+
printf("probe_pixel of fbo for float texture with read clamp %s (expecting %sclamping)\n", clamp_strings[read_clamp], clamped ? "" : "no ");
- glClampColorARB(GL_CLAMP_READ_COLOR_ARB, clamp_enums[read_clamp]);
+ if (!test_defaults)
+ glClampColorARB(GL_CLAMP_READ_COLOR_ARB, clamp_enums[read_clamp]);
expected = (fixed || clamped) ? clamped_pixels : pixels;
@@ -66,7 +70,8 @@ GLboolean test()
}
}
- glClampColorARB(GL_CLAMP_READ_COLOR_ARB, GL_FALSE);
+ if (!test_defaults)
+ glClampColorARB(GL_CLAMP_READ_COLOR_ARB, GL_FALSE);
return pass;
}