devilhorns pushed a commit to branch master.
commit 53f9d6ce8cfbff4ea0f3c901a2a53a3f45cb9d3a
Author: Chris Michael <[email protected]>
Date: Tue Apr 30 14:34:46 2013 +0100
Check for a valid buffer before we free it (this fixes resize issues
when async_render).
NB: If buffer is still valid, that means compositor is not finished
with it yet, so don't release it.
Signed-off-by: Chris Michael <[email protected]>
---
src/modules/evas/engines/wayland_shm/evas_swapper.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/src/modules/evas/engines/wayland_shm/evas_swapper.c
b/src/modules/evas/engines/wayland_shm/evas_swapper.c
index cc66917..9fcba8b 100644
--- a/src/modules/evas/engines/wayland_shm/evas_swapper.c
+++ b/src/modules/evas/engines/wayland_shm/evas_swapper.c
@@ -414,7 +414,7 @@ _evas_swapper_buffer_free(Wl_Buffer *wb)
LOGFN(__FILE__, __LINE__, __FUNCTION__);
/* check for valid buffer */
- if (!wb) return;
+ if ((!wb) || (wb->valid)) return;
/* kill the wl_buffer */
if (wb->buffer) wl_buffer_destroy(wb->buffer);
@@ -479,9 +479,6 @@ _evas_swapper_buffer_put(Wl_Swapper *ws, Wl_Buffer *wb,
Eina_Rectangle *rects, u
sent = wb;
}
- /* surface damage */
- /* printf("Damage Surface: %d %d %d %d\n", rect->x, rect->y, rect->w,
rect->h); */
-
wl_surface_damage(ws->surface, rect->x, rect->y, rect->w, rect->h);
/* surface commit */
--
------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1