summaryrefslogtreecommitdiff
path: root/tests/spec/ext_transform_feedback/interleaved.c
diff options
context:
space:
mode:
authorPaul Berry <stereotype441@gmail.com>2012-02-27 09:50:42 -0800
committerPaul Berry <stereotype441@gmail.com>2012-03-07 18:20:27 -0800
commit7ffd7d0691baabaefc3e12dcc5f7f4780a3a3fd9 (patch)
treefce3f9ca497a2f072f7941cbaf9f19605594b834 /tests/spec/ext_transform_feedback/interleaved.c
parentac16e8c519ad5b5f6f17a7da41d627338a3d2b0d (diff)
Stop using GLEW_VERSION_* macros
Several tests were checking the GL version using GLEW's GLEW_VERSION_* macros. This patch changes the tests to use piglit_get_gl_version(), which provides the same functionality in a way that is not dependent on GLEW. Reviewed-by: Eric Anholt <eric@anholt.net> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
Diffstat (limited to 'tests/spec/ext_transform_feedback/interleaved.c')
-rw-r--r--tests/spec/ext_transform_feedback/interleaved.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/spec/ext_transform_feedback/interleaved.c b/tests/spec/ext_transform_feedback/interleaved.c
index 3f84d362c..63087c91d 100644
--- a/tests/spec/ext_transform_feedback/interleaved.c
+++ b/tests/spec/ext_transform_feedback/interleaved.c
@@ -61,7 +61,7 @@ void piglit_init(int argc, char **argv)
piglit_ortho_projection(piglit_width, piglit_height, GL_FALSE);
/* Check the driver. */
- if (!GLEW_VERSION_1_5) {
+ if (piglit_get_gl_version() < 15) {
fprintf(stderr, "OpenGL 1.5 required.\n");
piglit_report_result(PIGLIT_SKIP);
}