压缩图片bug解决
This commit is contained in:
1 parent
3083224ee6
commit
9570334e25
5 files changed
+25
-6
No files matched your search
@@ -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("成功");
|
||||
|
||||
Reference in new issue
Block a user