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,8 +456,9 @@ _cogl_winsys_display_setup (CoglDisplay *display,
|
||||
struct wl_display *wayland_display = display->wayland_compositor_display;
|
||||
CoglRendererEGL *egl_renderer = display->renderer->winsys;
|
||||
|
||||
egl_renderer->pf_eglBindWaylandDisplay (egl_renderer->edpy,
|
||||
wayland_display);
|
||||
if (egl_renderer->pf_eglBindWaylandDisplay)
|
||||
egl_renderer->pf_eglBindWaylandDisplay (egl_renderer->edpy,
|
||||
wayland_display);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user