Revert "render/egl: skip incompatible EGL devices"

Reverts commit c73e20628a.

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`.
This commit is contained in:
Simon Zeni 2023-02-18 11:49:51 -05:00
parent 58067a2084
commit 782b5e6565
1 changed files with 0 additions and 5 deletions

View File

@ -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");