egl: use alts for EGL_EXT_device_enum, if missing

This commit is contained in:
Cole Mickens 2021-11-09 16:41:24 -08:00
parent 02a1ae169e
commit 3a685b10b6
No known key found for this signature in database
GPG Key ID: B475C2955744A019

View File

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