[PATCH] subsurfaces: fix rendering problem with cairo-glesv2
Kristian Høgsberg
hoegsberg at gmail.com
Wed Aug 28 22:33:33 PDT 2013
On Wed, Aug 28, 2013 at 10:14:35AM +0400, Stanislav Vorobiov wrote:
> when using cairo-glesv2 subsurface rendering code
> implicitly calls eglMakeCurrent(dpy, NULL, NULL, ctx)
> (since EGL_KHR_surfaceless_context is used), thus,
> triangle_frame_callback:eglSwapBuffers returns EGL_BAD_SURFACE
> error for all invocations other that the first one
Thanks, that explains why it stopped spinning.
Kristian
> clients/subsurfaces.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/clients/subsurfaces.c b/clients/subsurfaces.c
> index 51b07a2..101ff17 100644
> --- a/clients/subsurfaces.c
> +++ b/clients/subsurfaces.c
> @@ -398,6 +398,9 @@ triangle_frame_callback(void *data, struct wl_callback *callback,
> if (callback)
> wl_callback_destroy(callback);
>
> + eglMakeCurrent(tri->egl->dpy, tri->egl_surface,
> + tri->egl_surface, tri->egl->ctx);
> +
> glViewport(0, 0, tri->width, tri->height);
>
> triangle_draw(&tri->gl, tri->time);
> --
> 1.7.9.5
>
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel
More information about the wayland-devel
mailing list