mirror of
https://gitlab.freedesktop.org/wayland/weston
synced 2024-09-06 18:05:39 +00:00
clients/simple-egl: use weston_check_egl_extension over strstr
Signed-off-by: Emil Velikov <emil.velikov@collabora.com> Reviewed-by: Daniel Stone <daniels@collabora.com>
This commit is contained in:
parent
ce5b614c80
commit
025ad93833
|
@ -188,8 +188,8 @@ init_egl(struct display *display, struct window *window)
|
|||
display->swap_buffers_with_damage = NULL;
|
||||
extensions = eglQueryString(display->egl.dpy, EGL_EXTENSIONS);
|
||||
if (extensions &&
|
||||
strstr(extensions, "EGL_EXT_swap_buffers_with_damage") &&
|
||||
strstr(extensions, "EGL_EXT_buffer_age"))
|
||||
weston_check_egl_extension(extensions, "EGL_EXT_swap_buffers_with_damage") &&
|
||||
weston_check_egl_extension(extensions, "EGL_EXT_buffer_age"))
|
||||
display->swap_buffers_with_damage =
|
||||
(PFNEGLSWAPBUFFERSWITHDAMAGEEXTPROC)
|
||||
eglGetProcAddress("eglSwapBuffersWithDamageEXT");
|
||||
|
|
Loading…
Reference in a new issue