Skip to content

Commit 77f2a39

Browse files
committed
Fix RenderTextureOutput depth format
- Since it defaults to 24 bit, Quest didn't like the texture
1 parent 41b4aa2 commit 77f2a39

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Assets/USharpVideo/Scripts/Utility/RenderTextureOutput.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ void CreateCRT()
8383
newCRT.initializationMode = CustomRenderTextureUpdateMode.OnLoad;
8484
newCRT.initializationColor = Color.black;
8585
newCRT.initializationSource = CustomRenderTextureInitializationSource.TextureAndColor;
86+
newCRT.depth = 0;
8687

8788
newCRT.updateMode = CustomRenderTextureUpdateMode.Realtime;
8889

0 commit comments

Comments
 (0)