[compiz] [PATCH] Fix fragment function leak.

Erkin Bahceci erkinbah at gmail.com
Sun Nov 4 11:50:25 PST 2007


Please disregard this patch. Apparently only the reflex plugin had the
problem I described and the patch wasn't doing what I meant to do for
water, blur, and video plugins. A fix is not necessary for those since
the problem was already handled there.

Regards,
Erkin

On 11/4/07, Erkin Bahceci <erkinbah at gmail.com> wrote:
> Hi,
>
> This patch fixes a leak when creating fragment functions in some of
> the plugins. The leak happens when there is a plugin that uses a
> fragment program with parameters and texture units on only a subset of
> windows. During screen painting, the allocated param and unit change
> across windows in the patched plugins, which (because of the mismatch
> with the previously created and stored function) causes new fragment
> functions to be created at each frame without destroying the old one,
> increasing the length of s->fragmentFunctions and slowly degrading
> painting performance.
>
> Regards,
> Erkin
>
>


-- 
- Erkin


More information about the compiz mailing list