Charity is sometimes performed for elevation to the heavenly kingdom and sometimes with great trouble and with repentance afterwards. "Why have I spent so much in this way?" Charity is also sometimes made under some obligation, at the request of a superior. These kinds of charity are said to be made in the mode of passion.
There are many charitable foundations which offer their gifts to institutions where sense gratification goes on. Such charities are not recommended in the Vedic scripture. Only charity in the mode of goodness is recommended.