Differential D10842 Diff 28644 head/graphics/mesa-dri/files/patch-src_egl_drivers_dri2_platform__x11.c
Changeset View
Changeset View
Standalone View
Standalone View
head/graphics/mesa-dri/files/patch-src_egl_drivers_dri2_platform__x11.c
# work-around for https://bugs.freedesktop.org/show_bug.cgi?id=100627 | # work-around for https://bugs.freedesktop.org/show_bug.cgi?id=100627 | ||||
# | # | ||||
--- src/egl/drivers/dri2/platform_x11.c.orig 2017-04-01 15:33:36 UTC | --- src/egl/drivers/dri2/platform_x11.c.orig 2017-05-10 14:13:57 UTC | ||||
+++ src/egl/drivers/dri2/platform_x11.c | +++ src/egl/drivers/dri2/platform_x11.c | ||||
@@ -1507,7 +1507,11 @@ | @@ -1509,7 +1509,11 @@ dri2_initialize_x11(_EGLDriver *drv, _EG | ||||
if (!getenv("LIBGL_ALWAYS_SOFTWARE")) { | if (!getenv("LIBGL_ALWAYS_SOFTWARE")) { | ||||
#ifdef HAVE_DRI3 | #ifdef HAVE_DRI3 | ||||
+#if (defined(__FreeBSD__) || defined(__FreeBSD_kernel__)) && !defined (__DRM_NEXT__) | +#if (defined(__FreeBSD__) || defined(__FreeBSD_kernel__)) && !defined (__DRM_NEXT__) | ||||
+ if (getenv("LIBGL_DRI3_ENABLE") && !getenv("LIBGL_DRI3_DISABLE")) | + if (getenv("LIBGL_DRI3_ENABLE") && !getenv("LIBGL_DRI3_DISABLE")) | ||||
+#else | +#else | ||||
if (!getenv("LIBGL_DRI3_DISABLE")) | if (!getenv("LIBGL_DRI3_DISABLE")) | ||||
+#endif | +#endif | ||||
initialized = dri2_initialize_x11_dri3(drv, disp); | initialized = dri2_initialize_x11_dri3(drv, disp); | ||||
#endif | #endif | ||||