Update TextureUtilProvider.cs

This commit is contained in:
Sinai 2021-03-21 15:16:36 +11:00 committed by GitHub
parent 9da2ea9b1b
commit 1807e7c5ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -55,7 +55,7 @@ namespace UnityExplorer.Core.Runtime
{
Color[] pixels;
if (IsReadable(orig))
if (!IsReadable(orig))
orig = ForceReadTexture(orig);
pixels = orig.GetPixels((int)rect.x, (int)rect.y, (int)rect.width, (int)rect.height);