render/gles2: remove unnecessary EGL import ext checks

We require the ext in the renderer init function.
This commit is contained in:
Simon Ser 2021-05-17 12:08:03 +02:00 committed by Simon Zeni
parent 6369f70931
commit 6f69e2f12e
2 changed files with 2 additions and 12 deletions

View file

@ -506,12 +506,8 @@ static bool gles2_init_wl_display(struct wlr_renderer *wlr_renderer,
wlr_log(WLR_INFO, "EGL_WL_bind_wayland_display is not supported");
}
if (renderer->egl->exts.image_dmabuf_import_ext) {
if (wlr_linux_dmabuf_v1_create(wl_display, wlr_renderer) == NULL) {
return false;
}
} else {
wlr_log(WLR_INFO, "EGL_EXT_image_dma_buf_import is not supported");
if (wlr_linux_dmabuf_v1_create(wl_display, wlr_renderer) == NULL) {
return false;
}
return true;