Lines 1-16
Link Here
|
1 |
# work-around for https://bugs.freedesktop.org/show_bug.cgi?id=100627 |
1 |
# work-around for https://bugs.freedesktop.org/show_bug.cgi?id=100627 |
2 |
# |
2 |
# |
3 |
--- src/egl/drivers/dri2/platform_x11.c.orig 2017-10-02 15:49:02 UTC |
3 |
--- src/egl/drivers/dri2/platform_x11.c.orig 2017-10-23 13:21:18 UTC |
4 |
+++ src/egl/drivers/dri2/platform_x11.c |
4 |
+++ src/egl/drivers/dri2/platform_x11.c |
5 |
@@ -1490,7 +1490,11 @@ dri2_initialize_x11(_EGLDriver *drv, _EG |
5 |
@@ -1462,6 +1462,9 @@ dri2_initialize_x11(_EGLDriver *drv, _EGLDisplay *disp |
6 |
|
6 |
|
7 |
if (!getenv("LIBGL_ALWAYS_SOFTWARE")) { |
7 |
if (!disp->Options.UseFallback) { |
8 |
#ifdef HAVE_DRI3 |
8 |
#ifdef HAVE_DRI3 |
9 |
+#if (defined(__FreeBSD__) || defined(__FreeBSD_kernel__)) && !defined (__DRM_NEXT__) |
9 |
+#if (defined(__FreeBSD__) || defined(__FreeBSD_kernel__)) && !defined(__DRM_NEXT__) |
10 |
+ if (getenv("LIBGL_DRI3_ENABLE") && !getenv("LIBGL_DRI3_DISABLE")) |
10 |
+ if (env_var_as_boolean("LIBGL_DRI3_ENABLE", false)) |
11 |
+#else |
|
|
12 |
if (!getenv("LIBGL_DRI3_DISABLE")) |
13 |
+#endif |
11 |
+#endif |
|
|
12 |
if (!env_var_as_boolean("LIBGL_DRI3_DISABLE", false)) |
14 |
initialized = dri2_initialize_x11_dri3(drv, disp); |
13 |
initialized = dri2_initialize_x11_dri3(drv, disp); |
15 |
#endif |
14 |
#endif |
16 |
|
|
|