[Piglit] [PATCH] Fix glslparsertest that it should call glewInit when building against OpenGL
Shuang He
shuang.he at intel.com
Mon Feb 28 19:37:38 PST 2011
From: Shuang He <shuang.he at intel.com>
---
tests/glslparsertest/glslparsertest.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/tests/glslparsertest/glslparsertest.c b/tests/glslparsertest/glslparsertest.c
index f24dc52..4ceb598 100644
--- a/tests/glslparsertest/glslparsertest.c
+++ b/tests/glslparsertest/glslparsertest.c
@@ -217,6 +217,10 @@ int main(int argc, char**argv)
glutCreateWindow("glslparsertest");
piglit_get_gl_version(NULL, &gl_version);
+#ifdef USE_OPENGL
+ glewInit();
+#endif
+
if (gl_version < 2.0
&& !piglit_is_extension_supported("GL_ARB_shader_objects")) {
printf("Requires OpenGL 2.0\n");
--
1.7.4.rc2.21.g8671.dirty
More information about the Piglit
mailing list