压缩图片bug解决

This commit is contained in:
Caiyanpeng committed 2021-11-22 09:51:17 +08:00
1 parent 3083224ee6
commit 9570334e25
5 files changed
+25 -6

No files matched your search

+1 -1
View File
@@ -611,7 +611,7 @@ public class LoginController : BaseScene
//}
Debug.Log(JsonConvert.SerializeObject(locationInfo));
var i = await ConfigHelper.thirdPartApi.GetMapImage(locationInfo);
var t = new Texture2D(4, 4,TextureFormat.DXT5, false);
var t = new Texture2D(2, 2, TextureFormat.DXT5, false);
if (t.LoadImage(Utils.StreamToBytes(i)))
{
Debug.Log("成功");