evas-drm: Fix setting cached image alpha flag
authorChris Michael <cp.michael@samsung.com>
Wed, 5 Mar 2014 14:11:36 +0000 (14:11 +0000)
committerChris Michael <cp.michael@samsung.com>
Wed, 5 Mar 2014 14:12:58 +0000 (14:12 +0000)
@bugfix: Set cached image alpha flag properly

This fixes issue where cached image alpha flag was not set properly.
Set it according to the outbuf's destination alpha flag.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
src/modules/evas/engines/drm/evas_outbuf.c

index 2008f92..8cafcf2 100644 (file)
@@ -241,7 +241,7 @@ evas_outbuf_update_region_new(Outbuf *ob, int x, int y, int w, int h, int *cx, i
              return NULL;
           }
 
-        img->cache_entry.flags.alpha |= ob->destination_alpha ? 1 : 0;
+        img->cache_entry.flags.alpha = ob->destination_alpha;
 
 #ifdef EVAS_CSERVE2
         if (evas_cserve2_use_get())