[4.0] Fixed loading of compressed texture formats