Skip to content

Commit 582c994

Browse files
authored
Merge pull request #45 from jacklul/patch-2
Fix comparison mistake
2 parents 95c4493 + beeda93 commit 582c994

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Assets/USharpVideo/Scripts/Utility/RenderTextureOutput.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ private void LateUpdate()
3838
{
3939
Texture videoPlayerTex = videoPlayerManager.GetVideoTexture();
4040

41-
if (lastTex != videoPlayerManager)
41+
if (lastTex != videoPlayerTex)
4242
{
4343
outputMat.SetTexture("_SourceTexture", videoPlayerTex);
4444
outputMat.SetInt("_IsAVPro", System.Convert.ToInt32(sourceVideoPlayer.IsUsingAVProPlayer()));

0 commit comments

Comments
 (0)