Lines Matching refs:extensions
47 weston_check_egl_extension(const char *extensions, const char *extension) in weston_check_egl_extension() argument
50 const char *end = extensions + strlen(extensions); in weston_check_egl_extension()
52 while (extensions < end) { in weston_check_egl_extension()
56 if (*extensions == ' ') { in weston_check_egl_extension()
57 extensions++; in weston_check_egl_extension()
61 n = strcspn(extensions, " "); in weston_check_egl_extension()
64 if (n == extlen && strncmp(extension, extensions, n) == 0) in weston_check_egl_extension()
67 extensions += n; in weston_check_egl_extension()
77 const char *extensions = eglQueryString(EGL_NO_DISPLAY, EGL_EXTENSIONS); in weston_platform_get_egl_proc_address() local
79 if (extensions && in weston_platform_get_egl_proc_address()
80 (weston_check_egl_extension(extensions, "EGL_EXT_platform_wayland") || in weston_platform_get_egl_proc_address()
81 weston_check_egl_extension(extensions, "EGL_KHR_platform_wayland"))) { in weston_platform_get_egl_proc_address()