From 782b5e65655d3b8d1ecdd31c57dea342a6a0c0e0 Mon Sep 17 00:00:00 2001 From: Simon Zeni Date: Sat, 18 Feb 2023 11:49:51 -0500 Subject: Revert "render/egl: skip incompatible EGL devices" Reverts commit c73e20628ad3cf8a38fc1cebd061a49da8708394. This caused a regression in the GLES2 renderer because `egl->exts.EXT_device_drm` is set in `egl_init_display()`, which is invoked after `get_egl_device_from_drm_fd()`. So the function will always return `EGL_NO_DEVICE_EXT`. --- render/egl.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'render') diff --git a/render/egl.c b/render/egl.c index cbee32d6..70596c75 100644 --- a/render/egl.c +++ b/render/egl.c @@ -446,11 +446,6 @@ static EGLDeviceEXT get_egl_device_from_drm_fd(struct wlr_egl *egl, return EGL_NO_DEVICE_EXT; } - if (!egl->exts.EXT_device_drm) { - wlr_log(WLR_DEBUG, "EGL_EXT_device_drm not supported"); - return EGL_NO_DEVICE_EXT; - } - EGLint nb_devices = 0; if (!egl->procs.eglQueryDevicesEXT(0, NULL, &nb_devices)) { wlr_log(WLR_ERROR, "Failed to query EGL devices"); -- cgit v1.2.3