Evas GL masking: Improve performance with scaled images

The GL scaled images is a fast path for masking where
the shader scales masks on the fly.
This optimization actually fixes some issues where the current
texture binding was incorrect.
This commit is contained in:
Jean-Philippe Andre 2015-04-23 16:12:04 +09:00
parent 7a9bf994de
commit 1ffe82fb7c
1 changed files with 7 additions and 0 deletions

View File

@ -1175,6 +1175,13 @@ eng_image_scaled_update(void *data EINA_UNUSED, void *scaled, void *image,
{
if (dst->scaled.origin == src)
{
if (dst->references == 1)
{
dst->w = dst_w;
dst->h = dst_h;
dst->scaled.smooth = smooth;
return dst;
}
src->references++;
reffed = EINA_TRUE;
}