This code helps you to support compressed (and not dirty) textures with Unity/NGUI