[PATCH weston 2/2] simple-egl: add support for EGL_KHR_swap_buffers_with_damage

Daniel Stone daniel at fooishbar.org
Mon Nov 21 11:32:55 UTC 2016


Hi Emil,

On 3 November 2016 at 22:38, Emil Velikov <emil.l.velikov at gmail.com> wrote:
> @@ -191,14 +205,21 @@ init_egl(struct display *display, struct window *window)
>         display->swap_buffers_with_damage = NULL;
>         extensions = eglQueryString(display->egl.dpy, EGL_EXTENSIONS);
>         if (extensions &&
> -           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");
> +           weston_check_egl_extension(extensions, "EGL_EXT_buffer_age")) {
> +               for (i = 0; i < ARRAY_LENGTH(foo); i++) {

This caused a signed vs. unsigned warning for me, so I've trivially
fixed and pushed both patches:
To ssh://git.freedesktop.org/git/wayland/weston
   46dc9b4..43cea54  upstream -> master

Cheers,
Daniel


More information about the wayland-devel mailing list