Using the destroyed call instead of destructor to delete textures