gfx stack update (still holding the breaking llvm)
[nyanlinux.git] / builders / mesa-gl-amd-sh-ef75752ef8639026e573ba7c97088c965551ef37 / contrib / egl_dri2.c.patch
blobf2db8774688ab2f14026cd020043922be12161c4
1 --- egl_dri2.c
2 +++ egl_dri2.c
3 @@ -1121,6 +1121,7 @@ dri2_setup_extensions(_EGLDisplay *disp)
4 if (!dri2_bind_extensions(dri2_dpy, mandatory_core_extensions, extensions, false))
5 return EGL_FALSE;
7 +#ifdef HAVE_X11_PLATFORM
8 #ifdef HAVE_DRI3_MODIFIERS
9 dri2_dpy->multibuffers_available =
10 (dri2_dpy->dri3_major_version > 1 || (dri2_dpy->dri3_major_version == 1 &&
11 @@ -1129,6 +1130,7 @@ dri2_setup_extensions(_EGLDisplay *disp)
12 dri2_dpy->present_minor_version >= 2)) &&
13 (dri2_dpy->image && dri2_dpy->image->base.version >= 15);
14 #endif
15 +#endif
17 dri2_bind_extensions(dri2_dpy, optional_core_extensions, extensions, true);
18 return EGL_TRUE;