Fixing a bug with DDS and mipmap