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

Commit 0025c83

Browse files
committed
Fix a preprocessor directive
1 parent cfa4b12 commit 0025c83

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Helpers/Texture2DHelpers.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ namespace UnityExplorer.Helpers
1010
{
1111
public static class Texture2DHelpers
1212
{
13-
#if CPP // If Mono
14-
#else
13+
#if MONO
1514
private static bool isNewEncodeMethod = false;
1615
private static MethodInfo EncodeToPNGMethod => m_encodeToPNGMethod ?? GetEncodeToPNGMethod();
1716
private static MethodInfo m_encodeToPNGMethod;
@@ -52,7 +51,7 @@ public static bool IsReadable(this Texture2D tex)
5251
}
5352
}
5453

55-
public static Texture2D Copy(Texture2D orig, Rect rect) //, bool isDTXnmNormal = false)
54+
public static Texture2D Copy(Texture2D orig, Rect rect)
5655
{
5756
Color[] pixels;
5857

0 commit comments

Comments
 (0)