Skip to content

Commit 061b94e

Browse files
author
Christophe
committed
Excluded VR code for Stadia platform support of HDRP
1 parent a0d3524 commit 061b94e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

PostProcessing/Runtime/Utils/RuntimeUtilities.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -781,7 +781,7 @@ public static bool isSinglePassStereoEnabled
781781
{
782782
#if UNITY_EDITOR
783783
return isSinglePassStereoSelected && Application.isPlaying;
784-
#elif UNITY_SWITCH
784+
#elif !ENABLE_VR
785785
return false;
786786
#elif UNITY_2017_2_OR_NEWER
787787
return UnityEngine.XR.XRSettings.eyeTextureDesc.vrUsage == VRTextureUsage.TwoEyes;
@@ -800,7 +800,7 @@ public static bool isVREnabled
800800
{
801801
#if UNITY_EDITOR
802802
return UnityEditor.PlayerSettings.virtualRealitySupported;
803-
#elif UNITY_XBOXONE || UNITY_SWITCH
803+
#elif UNITY_XBOXONE || !ENABLE_VR
804804
return false;
805805
#elif UNITY_2017_2_OR_NEWER
806806
return UnityEngine.XR.XRSettings.enabled;

0 commit comments

Comments
 (0)