summaryrefslogtreecommitdiffstats
path: root/src/glx/tests
diff options
context:
space:
mode:
Diffstat (limited to 'src/glx/tests')
-rw-r--r--src/glx/tests/query_renderer_implementation_unittest.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/glx/tests/query_renderer_implementation_unittest.cpp b/src/glx/tests/query_renderer_implementation_unittest.cpp
index 474908939d6..2bf88430263 100644
--- a/src/glx/tests/query_renderer_implementation_unittest.cpp
+++ b/src/glx/tests/query_renderer_implementation_unittest.cpp
@@ -24,6 +24,8 @@
#include <signal.h>
#include <setjmp.h>
+#if defined(GLX_DIRECT_RENDERING) && !defined(GLX_USE_APPLEGL)
+
extern "C" {
#include "glxclient.h"
#include "glx_error.h"
@@ -308,3 +310,5 @@ TEST_F(dri2_query_renderer_integer_test, valid_attribute_mapping)
EXPECT_FALSE(got_sigsegv);
}
}
+
+#endif /* GLX_DIRECT_RENDERING */