Commit 1d422986 authored by Eric Anholt's avatar Eric Anholt

GL_ARB_sampler_objects/sampler-objects: Use piglit_require_extension()

This gives us nicer skip messages if the extension isn't present.
parent c51274ab
......@@ -246,8 +246,7 @@ piglit_display(void)
void
piglit_init(int argc, char**argv)
{
if (!piglit_is_extension_supported("GL_ARB_sampler_objects"))
piglit_report_result(PIGLIT_SKIP);
piglit_require_extension("GL_ARB_sampler_objects");
piglit_ortho_projection(piglit_width, piglit_height, GL_FALSE);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment