[Piglit] [PATCH 2/7] sparse-samplers: Add missing extension checks

Ian Romanick idr at freedesktop.org
Thu Dec 19 11:37:30 PST 2013


From: Ian Romanick <ian.d.romanick at intel.com>

Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
---
 tests/spec/arb_fragment_program/sparse-samplers.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/spec/arb_fragment_program/sparse-samplers.c b/tests/spec/arb_fragment_program/sparse-samplers.c
index 0400008..de0b40e 100644
--- a/tests/spec/arb_fragment_program/sparse-samplers.c
+++ b/tests/spec/arb_fragment_program/sparse-samplers.c
@@ -175,6 +175,8 @@ piglit_init(int argc, char **argv)
 {
 	int i;
 
+	piglit_require_extension("GL_ARB_fragment_program");
+
 	for (i = 0; i < 4; i++) {
 		nearest_tolerance[i] = piglit_tolerance[i];
 		linear_tolerance[i] = 0.02;
-- 
1.8.1.4



More information about the Piglit mailing list