From beeda937790fd1a8fa05e950332c006ac28e0c51 Mon Sep 17 00:00:00 2001 From: Jack'lul Date: Fri, 6 May 2022 16:18:00 +0200 Subject: [PATCH] Fix comparison mistake --- Assets/USharpVideo/Scripts/Utility/RenderTextureOutput.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/USharpVideo/Scripts/Utility/RenderTextureOutput.cs b/Assets/USharpVideo/Scripts/Utility/RenderTextureOutput.cs index 1f0f242..367a669 100644 --- a/Assets/USharpVideo/Scripts/Utility/RenderTextureOutput.cs +++ b/Assets/USharpVideo/Scripts/Utility/RenderTextureOutput.cs @@ -38,7 +38,7 @@ private void LateUpdate() { Texture videoPlayerTex = videoPlayerManager.GetVideoTexture(); - if (lastTex != videoPlayerManager) + if (lastTex != videoPlayerTex) { outputMat.SetTexture("_SourceTexture", videoPlayerTex); outputMat.SetInt("_IsAVPro", System.Convert.ToInt32(sourceVideoPlayer.IsUsingAVProPlayer()));