summaryrefslogtreecommitdiff
path: root/src/glx/dri_common.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/glx/dri_common.h')
-rw-r--r--src/glx/dri_common.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/glx/dri_common.h b/src/glx/dri_common.h
index 1b74397063b..6c634d81608 100644
--- a/src/glx/dri_common.h
+++ b/src/glx/dri_common.h
@@ -36,6 +36,8 @@
#ifndef _DRI_COMMON_H
#define _DRI_COMMON_H
+#ifdef GLX_DIRECT_RENDERING
+
#include <GL/internal/dri_interface.h>
#include <stdbool.h>
#include "loader.h"
@@ -83,4 +85,6 @@ dri2_check_no_error(uint32_t flags, struct glx_context *share_context,
int major, unsigned *error);
+#endif /* GLX_DIRECT_RENDERING */
+
#endif /* _DRI_COMMON_H */