Free gl textures on the right thread.