[Piglit] [PATCH] Fix glslparsertest that it should call glewInit when building against OpenGL
Shuang He
shuang.he at intel.com
Tue Mar 1 18:48:44 PST 2011
All glsl parser test will report shader not support without this fix,
since GLEW is not initialized when checking shader support
Thanks
--Shuang
On 2011/3/1 11:37, He, Shuang wrote:
> 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");
More information about the Piglit
mailing list