summaryrefslogtreecommitdiffstats
path: root/src/mapi/glapi/tests
diff options
context:
space:
mode:
authorJon TURNEY <jon.turney@dronecode.org.uk>2013-02-27 15:32:37 +0000
committerJon TURNEY <jon.turney@dronecode.org.uk>2013-03-13 14:55:52 +0000
commit28e169363033aff7752382d790886eaadd4787f9 (patch)
tree28309d2e4498dd5218fa6a00ecba29c811a025e9 /src/mapi/glapi/tests
parented8ddd57e904f9a1a007d1f4b3142dbb8a08f244 (diff)
downloadexternal_mesa3d-28e169363033aff7752382d790886eaadd4787f9.zip
external_mesa3d-28e169363033aff7752382d790886eaadd4787f9.tar.gz
external_mesa3d-28e169363033aff7752382d790886eaadd4787f9.tar.bz2
Properly check GLX_INDIRECT_RENDERING in glapi/tests/check_table
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
Diffstat (limited to 'src/mapi/glapi/tests')
-rw-r--r--src/mapi/glapi/tests/Makefile.am1
-rw-r--r--src/mapi/glapi/tests/check_table.cpp2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/mapi/glapi/tests/Makefile.am b/src/mapi/glapi/tests/Makefile.am
index 3553b99..26149c9 100644
--- a/src/mapi/glapi/tests/Makefile.am
+++ b/src/mapi/glapi/tests/Makefile.am
@@ -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
diff --git a/src/mapi/glapi/tests/check_table.cpp b/src/mapi/glapi/tests/check_table.cpp
index dffec83..375645b 100644
--- a/src/mapi/glapi/tests/check_table.cpp
+++ b/src/mapi/glapi/tests/check_table.cpp
@@ -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,