Re: [PATCH weston] nested: Fix skipping frames due to texture update without a context

2013-08-15 Thread Kristian Høgsberg
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

Re: [PATCH weston] nested: Fix skipping frames due to texture update without a context

2013-08-15 Thread Ander Conselvan de Oliveira
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

[PATCH weston] nested: Fix skipping frames due to texture update without a context

2013-07-16 Thread Ander Conselvan de Oliveira
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