Skip to content

Commit

Permalink
Merge pull request #45 from jacklul/patch-2
Browse files Browse the repository at this point in the history
Fix comparison mistake
  • Loading branch information
MerlinVR authored Oct 2, 2023
2 parents 95c4493 + beeda93 commit 582c994
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 582c994

Please sign in to comment.