Skip to content

Commit

Permalink
Fix comparison mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
jacklul committed May 6, 2022
1 parent a056763 commit beeda93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Assets/USharpVideo/Scripts/Utility/RenderTextureOutput.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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()));
Expand Down

0 comments on commit beeda93

Please sign in to comment.