Commit 1b82df13 authored by Chris Forbes's avatar Chris Forbes

Replace more if(piglit_get_gl_version() < N)...

These cases were missed by the original semantic patch due to using
fprintf(stderr,... instead of printf.
Signed-off-by: Chris Forbes's avatarChris Forbes <chrisf@ijw.co.nz>
Reviewed-by: Eric Anholt's avatarEric Anholt <eric@anholt.net>
Reviewed-by: Brian Paul's avatarBrian Paul <brianp@vmware.com>
parent a72977ee
...@@ -71,10 +71,7 @@ void piglit_init(int argc, char **argv) ...@@ -71,10 +71,7 @@ void piglit_init(int argc, char **argv)
piglit_ortho_projection(piglit_width, piglit_height, GL_FALSE); piglit_ortho_projection(piglit_width, piglit_height, GL_FALSE);
/* Check the driver. */ /* Check the driver. */
if (piglit_get_gl_version() < 15) { piglit_require_gl_version(15);
fprintf(stderr, "OpenGL 1.5 required.\n");
piglit_report_result(PIGLIT_SKIP);
}
piglit_require_GLSL(); piglit_require_GLSL();
piglit_require_extension("GL_EXT_transform_feedback"); piglit_require_extension("GL_EXT_transform_feedback");
piglit_require_extension("GL_ARB_transform_feedback2"); piglit_require_extension("GL_ARB_transform_feedback2");
......
...@@ -62,10 +62,7 @@ void piglit_init(int argc, char **argv) ...@@ -62,10 +62,7 @@ void piglit_init(int argc, char **argv)
piglit_ortho_projection(piglit_width, piglit_height, GL_FALSE); piglit_ortho_projection(piglit_width, piglit_height, GL_FALSE);
/* Check the driver. */ /* Check the driver. */
if (piglit_get_gl_version() < 15) { piglit_require_gl_version(15);
fprintf(stderr, "OpenGL 1.5 required.\n");
piglit_report_result(PIGLIT_SKIP);
}
piglit_require_GLSL(); piglit_require_GLSL();
piglit_require_transform_feedback(); piglit_require_transform_feedback();
......
...@@ -1470,10 +1470,7 @@ test_ready: ...@@ -1470,10 +1470,7 @@ test_ready:
piglit_ortho_projection(piglit_width, piglit_height, GL_FALSE); piglit_ortho_projection(piglit_width, piglit_height, GL_FALSE);
/* Check the driver. */ /* Check the driver. */
if (piglit_get_gl_version() < 15) { piglit_require_gl_version(15);
fprintf(stderr, "OpenGL 1.5 required.\n");
piglit_report_result(PIGLIT_SKIP);
}
piglit_require_GLSL(); piglit_require_GLSL();
piglit_require_transform_feedback(); piglit_require_transform_feedback();
if (!test->is_floating_point) if (!test->is_floating_point)
......
...@@ -100,10 +100,7 @@ void piglit_init(int argc, char **argv) ...@@ -100,10 +100,7 @@ void piglit_init(int argc, char **argv)
piglit_ortho_projection(piglit_width, piglit_height, GL_FALSE); piglit_ortho_projection(piglit_width, piglit_height, GL_FALSE);
/* Check the driver. */ /* Check the driver. */
if (piglit_get_gl_version() < 15) { piglit_require_gl_version(15);
fprintf(stderr, "OpenGL 1.5 required.\n");
piglit_report_result(PIGLIT_SKIP);
}
piglit_require_GLSL(); piglit_require_GLSL();
piglit_require_transform_feedback(); piglit_require_transform_feedback();
......
...@@ -62,10 +62,7 @@ void piglit_init(int argc, char **argv) ...@@ -62,10 +62,7 @@ void piglit_init(int argc, char **argv)
piglit_ortho_projection(piglit_width, piglit_height, GL_FALSE); piglit_ortho_projection(piglit_width, piglit_height, GL_FALSE);
/* Check the driver. */ /* Check the driver. */
if (piglit_get_gl_version() < 15) { piglit_require_gl_version(15);
fprintf(stderr, "OpenGL 1.5 required.\n");
piglit_report_result(PIGLIT_SKIP);
}
piglit_require_GLSL(); piglit_require_GLSL();
piglit_require_transform_feedback(); piglit_require_transform_feedback();
......
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