[Piglit] [PATCH 3/8] convert version check to piglit_require_gl_version
Chris Forbes
chrisf at ijw.co.nz
Sat Sep 1 18:17:28 PDT 2012
---
tests/shaders/glsl-arb-fragment-coord-conventions.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/tests/shaders/glsl-arb-fragment-coord-conventions.c b/tests/shaders/glsl-arb-fragment-coord-conventions.c
index 9194c6a..21f2b25 100644
--- a/tests/shaders/glsl-arb-fragment-coord-conventions.c
+++ b/tests/shaders/glsl-arb-fragment-coord-conventions.c
@@ -219,10 +219,7 @@ static void key_func(unsigned char key, int x, int y)
void piglit_init(int argc, char **argv)
{
- if (piglit_get_gl_version() < 20) {
- printf("Requires OpenGL 2.0\n");
- piglit_report_result(PIGLIT_SKIP);
- }
+ piglit_require_gl_version(20);
piglit_require_extension("GL_ARB_fragment_coord_conventions");
--
1.7.12
More information about the Piglit
mailing list