aboutsummaryrefslogtreecommitdiff
path: root/tests/glx
diff options
context:
space:
mode:
authorPaul Berry <stereotype441@gmail.com>2012-02-27 09:55:03 -0800
committerPaul Berry <stereotype441@gmail.com>2012-03-07 18:20:27 -0800
commita4ba962e10cbe8bdb95d8f40a465565c8af3edc5 (patch)
treef52b96954f8b075e6e7db560d24ae6bd272685d4 /tests/glx
parent7ffd7d0691baabaefc3e12dcc5f7f4780a3a3fd9 (diff)
Stop using GLEW extension macros
Several tests were checking for the presence of GL extensions using GLEW macros. This patch changes the tests to use piglit_is_extension_supported(), which provides the same functionality in a way that is not dependent on GLEW. v2: Follow piglit convention of including "GL_" in the string passed to piglit_is_extension_supported(). Reviewed-by: Chad Versace <chad.versace@linux.intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Diffstat (limited to 'tests/glx')
-rw-r--r--tests/glx/glx-tfp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/glx/glx-tfp.c b/tests/glx/glx-tfp.c
index 204933ee..f2976ddc 100644
--- a/tests/glx/glx-tfp.c
+++ b/tests/glx/glx-tfp.c
@@ -328,7 +328,7 @@ int main(int argc, char**argv)
XMapWindow(dpy, win);
piglit_require_glx_extension(dpy, "GLX_EXT_texture_from_pixmap");
- if (!GLEW_ARB_texture_env_combine) {
+ if (!piglit_is_extension_supported("GL_ARB_texture_env_combine")) {
fprintf(stderr, "Test requires GL_ARB_texture_env_combine\n");
piglit_report_result(PIGLIT_SKIP);
}