diff --git a/LogWatcher.cs b/LogWatcher.cs index b461f951..7ff0af0d 100644 --- a/LogWatcher.cs +++ b/LogWatcher.cs @@ -19,6 +19,7 @@ namespace VRCX public long Length; public long Position; public string RecentWorldName; + public bool ShaderKeywordsLimitReached = false; } public static readonly LogWatcher Instance; @@ -28,7 +29,6 @@ namespace VRCX private readonly List m_LogList; private Thread m_Thread; private bool m_ResetLog; - private static bool ShaderKeywordsLimitReached = false; // NOTE // FileSystemWatcher() is unreliable @@ -276,7 +276,6 @@ namespace VRCX location, logContext.RecentWorldName }); - ShaderKeywordsLimitReached = false; return true; } @@ -385,7 +384,7 @@ namespace VRCX { // 2021.04.04 12:21:06 Error - Maximum number (256) of shader keywords exceeded, keyword _TOGGLESIMPLEBLUR_ON will be ignored. - if (ShaderKeywordsLimitReached == true) + if (logContext.ShaderKeywordsLimitReached == true) { return false; } @@ -402,7 +401,7 @@ namespace VRCX "event", "Shader Keyword Limit has been reached" }); - ShaderKeywordsLimitReached = true; + logContext.ShaderKeywordsLimitReached = true; return true; }