diff options
author | Paul Berry <stereotype441@gmail.com> | 2012-02-27 09:50:42 -0800 |
---|---|---|
committer | Paul Berry <stereotype441@gmail.com> | 2012-03-07 18:20:27 -0800 |
commit | 7ffd7d0691baabaefc3e12dcc5f7f4780a3a3fd9 (patch) | |
tree | fce3f9ca497a2f072f7941cbaf9f19605594b834 /tests/general/blendsquare.c | |
parent | ac16e8c519ad5b5f6f17a7da41d627338a3d2b0d (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/general/blendsquare.c')
-rw-r--r-- | tests/general/blendsquare.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/general/blendsquare.c b/tests/general/blendsquare.c index 3f2302c12..c0ba61f5c 100644 --- a/tests/general/blendsquare.c +++ b/tests/general/blendsquare.c @@ -89,7 +89,7 @@ piglit_display(void) void piglit_init(int argc, char **argv) { - if (!GLEW_VERSION_1_4 && !GLEW_NV_blend_square) { + if (piglit_get_gl_version() < 14 && !GLEW_NV_blend_square) { printf("Sorry, this program requires either OpenGL 1.4 or " "GL_NV_blend_square\n"); piglit_report_result(PIGLIT_SKIP); |