Skip to content
This repository was archived by the owner on Nov 30, 2020. It is now read-only.

Commit 72f000e

Browse files
committed
Only do stereo rendering in play mode
1 parent 79af5dc commit 72f000e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

PostProcessing/Runtime/Utils/RuntimeUtilities.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,8 @@ public static bool isSinglePassStereoEnabled
227227
{
228228
#if UNITY_EDITOR
229229
return UnityEditor.PlayerSettings.virtualRealitySupported
230-
&& UnityEditor.PlayerSettings.stereoRenderingPath == UnityEditor.StereoRenderingPath.SinglePass;
230+
&& UnityEditor.PlayerSettings.stereoRenderingPath == UnityEditor.StereoRenderingPath.SinglePass
231+
&& Application.isPlaying;
231232
#else
232233
return false;
233234
#endif

0 commit comments

Comments
 (0)