summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/evas/canvas/evas_object_image.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/evas/canvas/evas_object_image.c b/src/lib/evas/canvas/evas_object_image.c
index 958fabaf00..1e8e32cd94 100644
--- a/src/lib/evas/canvas/evas_object_image.c
+++ b/src/lib/evas/canvas/evas_object_image.c
@@ -1142,6 +1142,10 @@ _efl_canvas_image_internal_efl_gfx_buffer_alpha_set(Eo *eo_obj, Evas_Image_Data
1142{ 1142{
1143 Evas_Object_Protected_Data *obj = efl_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS); 1143 Evas_Object_Protected_Data *obj = efl_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
1144 1144
1145 has_alpha = !!has_alpha;
1146 if (has_alpha == o->cur->has_alpha)
1147 return;
1148
1145 evas_object_async_block(obj); 1149 evas_object_async_block(obj);
1146 if ((o->preload & EVAS_IMAGE_PRELOADING) && (o->engine_data)) 1150 if ((o->preload & EVAS_IMAGE_PRELOADING) && (o->engine_data))
1147 { 1151 {
@@ -1149,10 +1153,6 @@ _efl_canvas_image_internal_efl_gfx_buffer_alpha_set(Eo *eo_obj, Evas_Image_Data
1149 ENFN->image_data_preload_cancel(ENC, o->engine_data, eo_obj, EINA_TRUE); 1153 ENFN->image_data_preload_cancel(ENC, o->engine_data, eo_obj, EINA_TRUE);
1150 } 1154 }
1151 1155
1152 has_alpha = !!has_alpha;
1153 if (has_alpha == o->cur->has_alpha)
1154 return;
1155
1156 EINA_COW_IMAGE_STATE_WRITE_BEGIN(o, state_write) 1156 EINA_COW_IMAGE_STATE_WRITE_BEGIN(o, state_write)
1157 { 1157 {
1158 state_write->has_alpha = has_alpha; 1158 state_write->has_alpha = has_alpha;