[Mesa-dev] [PATCH] glapi: Include GLES2 headers for ES2 extension functions

Lucas Stach dev at lynxeye.de
Wed Feb 8 13:33:37 PST 2012


Yep, fixes the issue here.

Tested-by: Lucas Stach <dev at lynxeye.de>
Am Mittwoch, den 08.02.2012, 13:06 -0800 schrieb Ian Romanick:
> From: Ian Romanick <ian.d.romanick at intel.com>
> 
> Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
> ---
> Does this patch fix the problem?  It eliminates the warning here, but
> I've never gotten the error.
> 
>  src/mapi/glapi/glapi_priv.h |   10 ++++++++++
>  1 files changed, 10 insertions(+), 0 deletions(-)
> 
> diff --git a/src/mapi/glapi/glapi_priv.h b/src/mapi/glapi/glapi_priv.h
> index 3ab553a..b6600c5 100644
> --- a/src/mapi/glapi/glapi_priv.h
> +++ b/src/mapi/glapi/glapi_priv.h
> @@ -38,6 +38,16 @@
>  #include "GL/gl.h"
>  #include "GL/glext.h"
>  
> +/* The define of GL_COVERAGE_SAMPLES_NV in gl2ext.h is guarded by a different
> + * extension (GL_NV_coverage_sample) than in glext.h
> + * (GL_NV_multisample_coverage).  Just undefine it to avoid spurious compiler
> + * warnings.
> + */
> +#undef GL_COVERAGE_SAMPLES_NV
> +
> +#include "GLES2/gl2platform.h"
> +#include "GLES2/gl2ext.h"
> +
>  #ifndef GL_OES_fixed_point
>  typedef int GLfixed;
>  typedef int GLclampx;




More information about the mesa-dev mailing list