render/gles2: remove unnecessary EGL import ext checks
We require the ext in the renderer init function.
This commit is contained in:
parent
6369f70931
commit
6f69e2f12e
|
@ -506,13 +506,9 @@ static bool gles2_init_wl_display(struct wlr_renderer *wlr_renderer,
|
||||||
wlr_log(WLR_INFO, "EGL_WL_bind_wayland_display is not supported");
|
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) {
|
if (wlr_linux_dmabuf_v1_create(wl_display, wlr_renderer) == NULL) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
wlr_log(WLR_INFO, "EGL_EXT_image_dma_buf_import is not supported");
|
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -269,12 +269,6 @@ struct wlr_texture *gles2_texture_from_dmabuf(struct wlr_renderer *wlr_renderer,
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!renderer->egl->exts.image_dmabuf_import_ext) {
|
|
||||||
wlr_log(WLR_ERROR, "Cannot create DMA-BUF texture: EGL extension "
|
|
||||||
"unavailable");
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
struct wlr_gles2_texture *texture =
|
struct wlr_gles2_texture *texture =
|
||||||
calloc(1, sizeof(struct wlr_gles2_texture));
|
calloc(1, sizeof(struct wlr_gles2_texture));
|
||||||
if (texture == NULL) {
|
if (texture == NULL) {
|
||||||
|
|
Loading…
Reference in New Issue