Re: [PATCH] gl-renderer: Always release previous EGL images on attach

2013-06-06 Thread Kristian Høgsberg
On Wed, Jun 05, 2013 at 12:21:05PM +0300, Ander Conselvan de Oliveira wrote: > From: Ander Conselvan de Oliveira > > When attaching a new buffer, the EGL images created for the previous one > would be released if this new buffer was an EGL or NULL buffer, but not > if is was an SHM buffer. This w

Re: [PATCH] gl-renderer: Always release previous EGL images on attach

2013-06-06 Thread Sinclair Yeh
On Wed, 5 Jun 2013 12:21:05 +0300 Ander Conselvan de Oliveira wrote: > From: Ander Conselvan de Oliveira > > > When attaching a new buffer, the EGL images created for the previous > one would be released if this new buffer was an EGL or NULL buffer, > but not if is was an SHM buffer. This would

Re: [PATCH] gl-renderer: Always release previous EGL images on attach

2013-06-05 Thread John Kåre Alsaker
May I suggest https://github.com/Zoxc/weston/commit/062f5ca5dc5809c027f693f2d642bc24f568e348instead? On Wed, Jun 5, 2013 at 11:21 AM, Ander Conselvan de Oliveira < conselv...@gmail.com> wrote: > From: Ander Conselvan de Oliveira > > When attaching a new buffer, the EGL images created for the pr

[PATCH] gl-renderer: Always release previous EGL images on attach

2013-06-05 Thread Ander Conselvan de Oliveira
From: Ander Conselvan de Oliveira When attaching a new buffer, the EGL images created for the previous one would be released if this new buffer was an EGL or NULL buffer, but not if is was an SHM buffer. This wouldn't cause the resources to be leaked becaused they are free()'d when the surface is