devilhorns pushed a commit to branch master.

commit 43e60f3f8376e601bbc8122ee0af0debc411e58f
Author: Chris Michael <[email protected]>
Date:   Thu Jul 25 15:45:55 2013 +0100

    Check that we have both Rects and Count is > 0 during buffer attach.
    
    NB: When trying to attach a buffer to a surface, there was a corner
    case that could fail in that if we just had 'rects' but count was 0,
    then the surface would not get damaged (essentially a call to
    wl_surface_damage would get passed 0,0 as the size). This fixes that
    problem in that if count is <= 0 now, then we'll damage the whole
    surface.
    
    Signed-off-by: Chris Michael <[email protected]>
---
 src/modules/evas/engines/wayland_shm/evas_swapper.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/modules/evas/engines/wayland_shm/evas_swapper.c 
b/src/modules/evas/engines/wayland_shm/evas_swapper.c
index ba1283c..f9f5b3d 100644
--- a/src/modules/evas/engines/wayland_shm/evas_swapper.c
+++ b/src/modules/evas/engines/wayland_shm/evas_swapper.c
@@ -469,10 +469,8 @@ _evas_swapper_buffer_put(Wl_Swapper *ws, Wl_Buffer *wb, 
Eina_Rectangle *rects, u
         return;
      }
 
-   if ((!rects) || (count == 0)) return;
-
    rect = eina_rectangle_new(0, 0, 0, 0);
-   if (rects)
+   if ((rects) && (count > 0))
      {
         unsigned int i = 0;
 

-- 

------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk

Reply via email to