glapi: Include GLES2 headers for ES2 extension functions
authorIan Romanick <ian.d.romanick@intel.com>
Wed, 8 Feb 2012 21:04:38 +0000 (13:04 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Wed, 15 Feb 2012 22:50:00 +0000 (14:50 -0800)
This fixes build errors like

In file included from glapi_dispatch.c:91:
../../../src/mapi/glapi/glapitemp.h:4641: error: no previous prototype for
'glDrawBuffersNV'

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Tested-by: Lucas Stach <dev@lynxeye.de>
src/mapi/glapi/glapi_priv.h

index 3ab553a2b8da674d13638920650e6af1e090a8c3..b6600c5fc9a51e3540105927e301729d21376543 100644 (file)
 #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;