summaryrefslogtreecommitdiff
path: root/src/modules/evas/engines/gl_common/evas_gl_preload.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/evas/engines/gl_common/evas_gl_preload.c')
-rw-r--r--src/modules/evas/engines/gl_common/evas_gl_preload.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/modules/evas/engines/gl_common/evas_gl_preload.c b/src/modules/evas/engines/gl_common/evas_gl_preload.c
index e566cb7..52a8429 100644
--- a/src/modules/evas/engines/gl_common/evas_gl_preload.c
+++ b/src/modules/evas/engines/gl_common/evas_gl_preload.c
@@ -105,7 +105,7 @@ _evas_gl_preload_main_loop_wakeup(void)
105 if (async->tex) 105 if (async->tex)
106 { 106 {
107 EINA_LIST_FREE(async->tex->targets, target) 107 EINA_LIST_FREE(async->tex->targets, target)
108 eo_do(target, evas_obj_image_pixels_dirty_set(EINA_TRUE)); 108 evas_obj_image_pixels_dirty_set(target, EINA_TRUE);
109 } 109 }
110 async->im->cache_entry.flags.preload_done = 0; 110 async->im->cache_entry.flags.preload_done = 0;
111 if (async->tex) 111 if (async->tex)
@@ -314,8 +314,7 @@ evas_gl_preload_target_register(Evas_GL_Texture *tex, Eo *target)
314{ 314{
315 EINA_SAFETY_ON_NULL_RETURN(tex); 315 EINA_SAFETY_ON_NULL_RETURN(tex);
316 316
317 eo_do(target, 317 eo_event_callback_add(target, EO_BASE_EVENT_DEL, _evas_gl_preload_target_die, tex);
318 eo_event_callback_add(EO_BASE_EVENT_DEL, _evas_gl_preload_target_die, tex));
319 tex->targets = eina_list_append(tex->targets, target); 318 tex->targets = eina_list_append(tex->targets, target);
320 tex->references++; 319 tex->references++;
321} 320}
@@ -328,8 +327,7 @@ evas_gl_preload_target_unregister(Evas_GL_Texture *tex, Eo *target)
328 327
329 EINA_SAFETY_ON_NULL_RETURN(tex); 328 EINA_SAFETY_ON_NULL_RETURN(tex);
330 329
331 eo_do(target, 330 eo_event_callback_del(target, EO_BASE_EVENT_DEL, _evas_gl_preload_target_die, tex);
332 eo_event_callback_del(EO_BASE_EVENT_DEL, _evas_gl_preload_target_die, tex));
333 331
334 EINA_LIST_FOREACH(tex->targets, l, o) 332 EINA_LIST_FOREACH(tex->targets, l, o)
335 if (o == target) 333 if (o == target)