diff --git a/libweston/gl-renderer.c b/libweston/gl-renderer.c index 9747de5e..3e8e5ab6 100644 --- a/libweston/gl-renderer.c +++ b/libweston/gl-renderer.c @@ -2004,7 +2004,8 @@ gl_renderer_attach(struct weston_surface *es, struct weston_buffer *buffer) if (shm_buffer) gl_renderer_attach_shm(es, buffer, shm_buffer); - else if (gr->query_buffer(gr->egl_display, (void *) buffer->resource, + else if (gr->has_bind_display && + gr->query_buffer(gr->egl_display, (void *)buffer->resource, EGL_TEXTURE_FORMAT, &format)) gl_renderer_attach_egl(es, buffer, format); else if ((dmabuf = linux_dmabuf_buffer_get(buffer->resource)))