Fixed texture unloading
Merge pull request #2 from ducakar/master

Fixed texture unloading