From fb44314af1026af4e8531677ae0ae026672cfa5f Mon Sep 17 00:00:00 2001 From: Jiyoun Park Date: Thu, 3 Nov 2011 15:20:30 +0000 Subject: [PATCH] Currently, only software engine checks animation flag during rendering. I add animation check code to gl engine. SVN revision: 64704 --- legacy/evas/src/modules/engines/gl_common/evas_gl_image.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/legacy/evas/src/modules/engines/gl_common/evas_gl_image.c b/legacy/evas/src/modules/engines/gl_common/evas_gl_image.c index f3734fb28a..1d4b1f8115 100644 --- a/legacy/evas/src/modules/engines/gl_common/evas_gl_image.c +++ b/legacy/evas/src/modules/engines/gl_common/evas_gl_image.c @@ -535,7 +535,9 @@ evas_gl_common_image_dirty(Evas_GL_Image *im, unsigned int x, unsigned int y, un void evas_gl_common_image_update(Evas_Engine_GL_Context *gc, Evas_GL_Image *im) { + Image_Entry *ie; if (!im->im) return; + ie = (Image_Entry *)(im->im); /* if ((im->cs.space == EVAS_COLORSPACE_YCBCR422P601_PL) || (im->cs.space == EVAS_COLORSPACE_YCBCR422P709_PL)) @@ -560,7 +562,8 @@ evas_gl_common_image_update(Evas_Engine_GL_Context *gc, Evas_GL_Image *im) switch (im->cs.space) { case EVAS_COLORSPACE_ARGB8888: - if ((im->tex) && (im->dirty)) + if ((im->tex) && + ((im->dirty) || (ie->flags.animated))) { evas_cache_image_load_data(&im->im->cache_entry); evas_gl_common_texture_update(im->tex, im->im);