aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2021-05-17 12:08:03 +0200
committerSimon Zeni <simon@bl4ckb0ne.ca>2021-05-17 10:09:22 -0400
commit6f69e2f12e57db177bea83be901c4fa171d6c3a3 (patch)
treeb69219714f480821231ff0b9c601173cbc7f8f1d
parent6369f7093178f0d66414eb67c312a403bfbb84a4 (diff)
render/gles2: remove unnecessary EGL import ext checks
We require the ext in the renderer init function.
-rw-r--r--render/gles2/renderer.c8
-rw-r--r--render/gles2/texture.c6
2 files changed, 2 insertions, 12 deletions
diff --git a/render/gles2/renderer.c b/render/gles2/renderer.c
index 59a2875f..a30a0d83 100644
--- a/render/gles2/renderer.c
+++ b/render/gles2/renderer.c
@@ -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;
diff --git a/render/gles2/texture.c b/render/gles2/texture.c
index 7e2b01ae..aa7af76c 100644
--- a/render/gles2/texture.c
+++ b/render/gles2/texture.c
@@ -269,12 +269,6 @@ struct wlr_texture *gles2_texture_from_dmabuf(struct wlr_renderer *wlr_renderer,
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 =
calloc(1, sizeof(struct wlr_gles2_texture));
if (texture == NULL) {