mirror of
https://github.com/brl/mutter.git
synced 2025-02-27 10:14:10 +00:00
egl: don't bind the wayland display if the extension is not available
When running in a purely swrast environment (such as with LIBGL_ALWAYS_SOFTWARE), the extension is not exposed by mesa, but wayland is still possible with wl_shm. https://bugzilla.gnome.org/show_bug.cgi?id=704750 Reviewed-by: Neil Roberts <neil@linux.intel.com> (cherry picked from commit 8d4e4b0e8062708cece4d4c929abccc492ee21cc)
This commit is contained in:
parent
f3c930ceb7
commit
b635b68756
@ -456,6 +456,7 @@ _cogl_winsys_display_setup (CoglDisplay *display,
|
|||||||
struct wl_display *wayland_display = display->wayland_compositor_display;
|
struct wl_display *wayland_display = display->wayland_compositor_display;
|
||||||
CoglRendererEGL *egl_renderer = display->renderer->winsys;
|
CoglRendererEGL *egl_renderer = display->renderer->winsys;
|
||||||
|
|
||||||
|
if (egl_renderer->pf_eglBindWaylandDisplay)
|
||||||
egl_renderer->pf_eglBindWaylandDisplay (egl_renderer->edpy,
|
egl_renderer->pf_eglBindWaylandDisplay (egl_renderer->edpy,
|
||||||
wayland_display);
|
wayland_display);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user