Skip to content

Commit

Permalink
Fixed error when video output size is 0.
Browse files Browse the repository at this point in the history
  • Loading branch information
Barbelot committed Mar 30, 2022
1 parent 07c8f03 commit 633a449
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Assets/Scripts/AugmentaVideoOutputSizeBinder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ void Update()

void UpdateRipplesController() {

if (augmentaVideoOutput.videoOutputSizeInPixels.x <= 0 || augmentaVideoOutput.videoOutputSizeInPixels.y <= 0)
return;

ripplesController.textureSize.x = Mathf.CeilToInt(augmentaVideoOutput.videoOutputSizeInPixels.x * ripplesTextureSizeMultiplier);
ripplesController.textureSize.y = Mathf.CeilToInt(augmentaVideoOutput.videoOutputSizeInPixels.y * ripplesTextureSizeMultiplier);
}
Expand Down
1 change: 0 additions & 1 deletion Assets/StreamingAssets/build_info

This file was deleted.

0 comments on commit 633a449

Please sign in to comment.