On Thu, Aug 15, 2013 at 08:00:05PM +0300, Ander Conselvan de Oliveira wrote:
> To clarify, what causes the wrong context to be bound is the call to
> cairo_destroy_surface(). Some of the cairo-gl functions do a
> cairo_gl_context_acquire() followed by some operation and finish by doing
> cairo_gl_c
To clarify, what causes the wrong context to be bound is the call to
cairo_destroy_surface(). Some of the cairo-gl functions do a
cairo_gl_context_acquire() followed by some operation and finish by doing
cairo_gl_context_release(). That last call is basically
eglMakeCurrent(dpy, EGL_NO_SURFACE, EGL
Calls into cairo-gles may change the current context, so it was only by
chance that sometimes we had the proper one as current and updated the
correct texture in surface_attach().
In order to fix this, calling display_acquire_window_surface() before
binding the texture for setup is necessary. Howe