[PATCH] glamor: Disable definitions of GL extension prototypes to avoid warnings.

Eric Anholt eric at anholt.net
Fri Jan 24 11:00:58 PST 2014

We're not using the extension prototypes, since you have to dlsym them
anyway.  Disabling their definitions prevents them from being defined
twice (once by gl.h, once by glext.h).

Signed-off-by: Eric Anholt <eric at anholt.net>

I was about to send the pull req for the glamor reformat and initial
build work, but realized I was running with some default warnings
disabled.  This fixes those.

(It also would have gone away with the epoxy changes that come later).

 glamor/glamor_priv.h | 2 --
 1 file changed, 2 deletions(-)

diff --git a/glamor/glamor_priv.h b/glamor/glamor_priv.h
index 9f0c558..8ccf4fa 100644
--- a/glamor/glamor_priv.h
+++ b/glamor/glamor_priv.h
@@ -35,8 +35,6 @@
 #include "glamor.h"
 #ifdef GLAMOR_GLES2
 #include <GLES2/gl2.h>
 #include <GLES2/gl2ext.h>

More information about the xorg-devel mailing list