[Piglit] [PATCH] piglit-util.c : fix compilation issues with GLES2

Brian Paul brianp at vmware.com
Tue May 24 06:43:05 PDT 2011


On 05/24/2011 06:07 AM, Tapani Pälli wrote:
> GL_GEOMETRY_SHADER is only defined if USE_OPENGL is defined
> and GL/glext.h is included (not defined in GLES2/gl2ext.h).
> ---
>   tests/util/piglit-util.c |    2 ++
>   1 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/tests/util/piglit-util.c b/tests/util/piglit-util.c
> index b39cc42..28096b8 100644
> --- a/tests/util/piglit-util.c
> +++ b/tests/util/piglit-util.c
> @@ -308,8 +308,10 @@ shader_name(GLenum target)
>      switch (target) {
>      case GL_VERTEX_SHADER:
>         return "vertex";
> +#if defined USE_OPENGL
>      case GL_GEOMETRY_SHADER:
>         return "geometry";
> +#endif
>      case GL_FRAGMENT_SHADER:
>         return "fragment";
>      default:

Committed.  Thansk.

-Brian



More information about the Piglit mailing list