1379N/A# Remove this patch once Mesa is updated to the latest release
1379N/A--- a/glx/glxdricommon.c Fri Dec 13 16:15:57 2013
1379N/A+++ b/glx/glxdricommon.c Fri Dec 13 16:22:22 2013
1379N/A@@ -209,6 +209,7 @@
1379N/A
1379N/A static const char dri_driver_path[] = DRI_DRIVER_PATH;
1379N/A
1379N/A+#if 0
1379N/A /* Temporary define to allow building without a dri_interface.h from
1379N/A * updated Mesa. Some day when we don't care about Mesa that old any
1379N/A * more this can be removed.
1379N/A@@ -216,6 +217,7 @@
1379N/A #ifndef __DRI_DRIVER_GET_EXTENSIONS
1379N/A #define __DRI_DRIVER_GET_EXTENSIONS "__driDriverGetExtensions"
1379N/A #endif
1379N/A+#endif
1379N/A
1379N/A void *
1379N/A glxProbeDriver(const char *driverName,
1379N/A@@ -238,6 +240,7 @@
1379N/A goto cleanup_failure;
1379N/A }
1379N/A
1379N/A+#if 0
1379N/A if (asprintf(&get_extensions_name, "%s_%s",
1379N/A __DRI_DRIVER_GET_EXTENSIONS, driverName) != -1) {
1379N/A const __DRIextension **(*get_extensions)(void);
1379N/A@@ -249,7 +252,8 @@
1379N/A }
1379N/A
1379N/A if (!extensions)
1379N/A- extensions = dlsym(driver, __DRI_DRIVER_EXTENSIONS);
1379N/A+#endif
1379N/A+ extensions = dlsym(driver, __DRI_DRIVER_EXTENSIONS);
1379N/A if (extensions == NULL) {
1379N/A LogMessage(X_ERROR, "AIGLX error: %s exports no extensions (%s)\n",
1379N/A driverName, dlerror());