remove the texture memory