Fix Texture format bug.