Skip to content

Commit 0d660a2

Browse files
committed
Update MixedRealityOptimizeUtils.cs
1 parent 2d1ecb1 commit 0d660a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Assets/MixedRealityToolkit/Utilities/Editor/MixedRealityOptimizeUtils.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public static void SetDepthBufferFormat(bool set16BitDepthBuffer)
9191
PlayerSettings.VRDaydream.depthFormat = depthFormat;
9292

9393
var playerSettings = GetSettingsObject("PlayerSettings");
94-
#if UNITY_2019
94+
#if UNITY_2019_1_OR_NEWER
9595
PlayerSettings.VRWindowsMixedReality.depthBufferFormat = set16BitDepthBuffer ?
9696
PlayerSettings.VRWindowsMixedReality.DepthBufferFormat.DepthBufferFormat16Bit :
9797
PlayerSettings.VRWindowsMixedReality.DepthBufferFormat.DepthBufferFormat24Bit;

0 commit comments

Comments
 (0)