diff options
author | Cole Mickens <cole.mickens@gmail.com> | 2021-11-09 16:41:24 -0800 |
---|---|---|
committer | Cole Mickens <cole.mickens@gmail.com> | 2021-11-09 16:47:32 -0800 |
commit | 3a685b10b66b9da6e0baa3ad48409db14e76eced (patch) | |
tree | 65ade38448c386c0cc2afb9aaee888cc78e1dcde /render | |
parent | 02a1ae169e66f53f2174add581c19d165d8ba882 (diff) |
egl: use alts for EGL_EXT_device_enum, if missing
Diffstat (limited to 'render')
-rw-r--r-- | render/egl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/render/egl.c b/render/egl.c index a1846c3e..ec23ce8d 100644 --- a/render/egl.c +++ b/render/egl.c @@ -189,11 +189,11 @@ static struct wlr_egl *egl_create(void) { egl->exts.EXT_platform_device = check_egl_ext(client_exts_str, "EGL_EXT_platform_device"); - if (check_egl_ext(client_exts_str, "EGL_EXT_device_enumeration")) { + if (check_egl_ext(client_exts_str, "EGL_EXT_device_base") || check_egl_ext(client_exts_str, "EGL_EXT_device_enumeration")) { load_egl_proc(&egl->procs.eglQueryDevicesEXT, "eglQueryDevicesEXT"); } - if (check_egl_ext(client_exts_str, "EGL_EXT_device_query")) { + if (check_egl_ext(client_exts_str, "EGL_EXT_device_base") || check_egl_ext(client_exts_str, "EGL_EXT_device_query")) { egl->exts.EXT_device_query = true; load_egl_proc(&egl->procs.eglQueryDeviceStringEXT, "eglQueryDeviceStringEXT"); |