aboutsummaryrefslogtreecommitdiff
path: root/render/egl.c
diff options
context:
space:
mode:
authorEric Engestrom <eric@engestrom.ch>2023-02-16 19:17:51 +0000
committerSimon Zeni <simon@bl4ckb0ne.ca>2023-02-16 19:43:06 +0000
commitc73e20628ad3cf8a38fc1cebd061a49da8708394 (patch)
treea5b4f51ba7265ebac96fdeb38d7ca3a18c389353 /render/egl.c
parent822eb07eaca392d9b7a99b0d8b96e402c8976fb4 (diff)
render/egl: skip incompatible EGL devices
Without EGL_EXT_device_drm, eglQueryDeviceStringEXT(EGL_DRM_DEVICE_FILE_EXT) further below is invalid.
Diffstat (limited to 'render/egl.c')
-rw-r--r--render/egl.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/render/egl.c b/render/egl.c
index 70596c75..cbee32d6 100644
--- a/render/egl.c
+++ b/render/egl.c
@@ -446,6 +446,11 @@ 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");