diff options
-rw-r--r-- | tests/spec/intel_blackhole_render/blackhole_draw.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/spec/intel_blackhole_render/blackhole_draw.c b/tests/spec/intel_blackhole_render/blackhole_draw.c index 7f2adc413..a24f6c22b 100644 --- a/tests/spec/intel_blackhole_render/blackhole_draw.c +++ b/tests/spec/intel_blackhole_render/blackhole_draw.c @@ -120,6 +120,12 @@ run(void) glClearColor(0.0, 1.0, 0.0, 1.0); glClear(GL_COLOR_BUFFER_BIT); + const float blackhole_draw_expected[] = { 0.0, 1.0, 0.0, 1.0 }; + if (!piglit_probe_pixel_rgba(piglit_width / 2, + piglit_height / 2, + blackhole_draw_expected)) + return PIGLIT_FAIL; + glEnable(GL_BLACKHOLE_RENDER_INTEL); if (!glIsEnabled(GL_BLACKHOLE_RENDER_INTEL)) @@ -132,7 +138,6 @@ run(void) piglit_present_results(); - const float blackhole_draw_expected[] = { 0.0, 1.0, 0.0, 1.0 }; if (!piglit_probe_pixel_rgba(piglit_width / 2, piglit_height / 2, blackhole_draw_expected)) |