Properly check GLX_INDIRECT_RENDERING in glapi/tests/check_table
authorJon TURNEY <jon.turney@dronecode.org.uk>
Wed, 27 Feb 2013 15:32:37 +0000 (15:32 +0000)
committerJon TURNEY <jon.turney@dronecode.org.uk>
Wed, 13 Mar 2013 14:55:52 +0000 (14:55 +0000)
Actually use $DEFINES, so we can see if GLX_INDIRECT_RENDERING is defined

If GLX_INDIRECT_RENDERING is defined,  _GLAPI_SKIP_PROTO_ENTRY_POINTS will
be defined, and libglapi won't contain the 'protocol entry points', so we
should provide stubs in check_table.cpp

src/mapi/glapi/tests/Makefile.am
src/mapi/glapi/tests/check_table.cpp

index 3553b99..26149c9 100644 (file)
@@ -1,6 +1,7 @@
 if !HAVE_SHARED_GLAPI
 AM_CFLAGS = $(PTHREAD_CFLAGS)
 AM_CPPFLAGS = \
+       $(DEFINES) \
        -I$(top_srcdir)/src/gtest/include \
        -I$(top_srcdir)/src/mapi \
        -I$(top_srcdir)/include
index dffec83..375645b 100644 (file)
@@ -1511,7 +1511,7 @@ const struct name_offset known_dispatch[] = {
    { NULL, 0 }
 };
 
-#ifndef GLX_INDIRECT_RENDERING
+#ifdef GLX_INDIRECT_RENDERING
 extern "C" {
 GLAPI GLboolean GLAPIENTRY
 glAreTexturesResidentEXT(GLsizei n, const GLuint *textures,