From 7ffd7d0691baabaefc3e12dcc5f7f4780a3a3fd9 Mon Sep 17 00:00:00 2001 From: Paul Berry Date: Mon, 27 Feb 2012 09:50:42 -0800 Subject: 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 Reviewed-by: Kenneth Graunke Reviewed-by: Chad Versace --- tests/shaders/glsl-explicit-location-03.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/shaders/glsl-explicit-location-03.c') diff --git a/tests/shaders/glsl-explicit-location-03.c b/tests/shaders/glsl-explicit-location-03.c index 27b4fea05..9970160b3 100644 --- a/tests/shaders/glsl-explicit-location-03.c +++ b/tests/shaders/glsl-explicit-location-03.c @@ -48,7 +48,7 @@ void piglit_init(int argc, char **argv) GLint prog; GLboolean ok; - if (!GLEW_VERSION_2_0) { + if (piglit_get_gl_version() < 20) { printf("Requires OpenGL 2.0\n"); piglit_report_result(PIGLIT_SKIP); } -- cgit v1.2.3