Skip to content
This repository was archived by the owner on May 9, 2023. It is now read-only.

Commit 0c40b4f

Browse files
committed
Merge branch 'master' of https://github.com/sinai-dev/Explorer
2 parents bba9126 + 1807e7c commit 0c40b4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Core/Runtime/TextureUtilProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public static Texture2D Copy(Texture2D orig, Rect rect)
5555
{
5656
Color[] pixels;
5757

58-
if (IsReadable(orig))
58+
if (!IsReadable(orig))
5959
orig = ForceReadTexture(orig);
6060

6161
pixels = orig.GetPixels((int)rect.x, (int)rect.y, (int)rect.width, (int)rect.height);

0 commit comments

Comments
 (0)