fixes for my last commit
fixes from Dolphin/master
improved custom texture loading  code to allow a small performance improvement. enable loading of compressed textures to improved performance in scenarios with large custom textures.