Thomas Wood <[email protected]> wrote: > This would certainly help someone implementing a Cogl texture cache as > well, since it is important to know when textures are no longer used.
Yeah, that could be quite nice except it points out one of the big flaws with toggle references which is that it doesn't work properly if more than one thing is trying to use them. Eg if you had a language interpreter take a toggle ref on a texture that was in the cache it would then never be freed. I don't think that's an easy problem to solve so it makes sense to assume that toggle refs can only be used by language bindings. - Neil -- To unsubscribe send a mail to [email protected]
