From 0025c839307a5c150cbdc2b09b3b9011c5d0dd15 Mon Sep 17 00:00:00 2001 From: sinaioutlander <49360850+sinaioutlander@users.noreply.github.com> Date: Mon, 23 Nov 2020 20:17:54 +1100 Subject: [PATCH] Fix a preprocessor directive --- src/Helpers/Texture2DHelpers.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Helpers/Texture2DHelpers.cs b/src/Helpers/Texture2DHelpers.cs index 8aba1e4..5679d44 100644 --- a/src/Helpers/Texture2DHelpers.cs +++ b/src/Helpers/Texture2DHelpers.cs @@ -10,8 +10,7 @@ namespace UnityExplorer.Helpers { public static class Texture2DHelpers { -#if CPP // If Mono -#else +#if MONO private static bool isNewEncodeMethod = false; private static MethodInfo EncodeToPNGMethod => m_encodeToPNGMethod ?? GetEncodeToPNGMethod(); private static MethodInfo m_encodeToPNGMethod; @@ -52,7 +51,7 @@ namespace UnityExplorer.Helpers } } - public static Texture2D Copy(Texture2D orig, Rect rect) //, bool isDTXnmNormal = false) + public static Texture2D Copy(Texture2D orig, Rect rect) { Color[] pixels;