summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2018-04-30 14:10:26 -0400
committerAdam Jackson <ajax@redhat.com>2018-04-30 15:49:44 -0400
commit975d3a509667579b81d88616b91491472059354d (patch)
tree5f6563ca561992b8d39264e8effba07f9c1dce2b
parentd6f2272f44ce1a7a96ae04fdbde8708514c60771 (diff)
xwayland: Avoid using epoxy_has_egl()
There's no real point - if we don't have EGL then the extension check is also going to fail - and the entrypoint is new in 1.5.0, which we don't need to require yet. Signed-off-by: Adam Jackson <ajax@redhat.com> Reviewed-by: Mario Kleiner <mario.kleiner.de@gmail.com>
-rw-r--r--hw/xwayland/xwayland-glamor.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/hw/xwayland/xwayland-glamor.c b/hw/xwayland/xwayland-glamor.c
index 2bd16e7ac..cdca072ed 100644
--- a/hw/xwayland/xwayland-glamor.c
+++ b/hw/xwayland/xwayland-glamor.c
@@ -55,8 +55,7 @@ xwl_glamor_egl_make_current(struct xwl_screen *xwl_screen)
Bool
xwl_glamor_egl_supports_device_probing(void)
{
- return epoxy_has_egl() &&
- epoxy_has_egl_extension(NULL, "EGL_EXT_device_base");
+ return epoxy_has_egl_extension(NULL, "EGL_EXT_device_base");
}
void **