forked from enlightenment/efl
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:
parent
7a9bf994de
commit
1ffe82fb7c
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue