intel/compiler: match brw_compile_* declarations with their definitions
[mesa.git] / src / glx / dri_common.h
index 363f15bf9bb292759c72a807736094459b693e1c..6c634d81608146484e4f37c8f7be76fa74cb3da8 100644 (file)
@@ -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"
@@ -78,4 +80,11 @@ dri2_convert_glx_attribs(unsigned num_attribs, const uint32_t *attribs,
                          uint32_t *render_type, uint32_t *flags, unsigned *api,
                          int *reset, int *release, unsigned *error);
 
+extern bool
+dri2_check_no_error(uint32_t flags, struct glx_context *share_context,
+                    int major, unsigned *error);
+
+
+#endif /* GLX_DIRECT_RENDERING */
+
 #endif /* _DRI_COMMON_H */