eet: set alpha_texture for ETC1+Alpha
authorSungtaek Hong <sth253.hong@samsung.com>
Tue, 20 Sep 2016 21:20:48 +0000 (14:20 -0700)
committerCedric BAIL <cedric@osg.samsung.com>
Tue, 20 Sep 2016 22:01:48 +0000 (15:01 -0700)
Summary:
alpha_texture need to be set EINA_TRUE to support ETC1+Alpha

@fix

Test Plan:
Create an EDC file with png image with Alpha.
           compress image with ETC1 and ETC2.
           Observe Alpha is properly applied in both case.

Reviewers: jpeg, Hermet, cedric

Reviewed By: cedric

Subscribers: conr2d

Differential Revision: https://phab.enlightenment.org/D4307

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
src/lib/eet/eet_image.c

index 38a0bdc..1da7985 100644 (file)
@@ -855,6 +855,7 @@ eet_data_image_etc1_compressed_convert(int         *size,
         etc_block_size = 8;
         num_planes = 2; // RGB and Alpha
         header[5] = 3;
+        alpha_texture = EINA_TRUE;
         codec = "ETC1+Alpha";
         break;
       default: abort();