On Fri,  7 Jun 2013 16:52:44 +0300
Ander Conselvan de Oliveira <ander.conselvan.de.olive...@intel.com>
wrote:

> Checking for gs->num_images for determining the previous buffer type
> when attaching is not reliable. The number of images is never cleared
> in the SHM path, so after a switch from an EGL buffer to SHM, every
> following attach of an SHM buffer will happen with gs->num_images > 0,
> and the code will assume the previous buffer was an EGL one.
> 
> Fix this by adding a buffer_type field to gl_surface_state.
> ---
>  src/gl-renderer.c |   21 +++++++++++++++++----
>  1 file changed, 17 insertions(+), 4 deletions(-)

I like tracking buffer type explicitly, rather than inferring from
num_images.

This series looks ok and seems to work ok from what little testing I
did.


Thanks,
pq
_______________________________________________
wayland-devel mailing list
wayland-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/wayland-devel

Reply via email to