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

Commit a0d3524

Browse files
author
Christophe
committed
Excluded VR code for Stadia platform support
1 parent 9877434 commit a0d3524

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
66

77
## [2.1.7] - 2019-XX-XX
88

9+
### Added
10+
- Excluded VR code for Stadia platform support
11+
912
### Fixed
1013
- Viewport handling wasn't working correctly when FXAA or SMAA were used with builtin pipelines.
1114
- Depth of Field could end up fully blurry depending on the project setup.

PostProcessing/Runtime/PostProcessLayer.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55

66
namespace UnityEngine.Rendering.PostProcessing
77
{
8-
#if UNITY_2017_2_OR_NEWER
8+
#if UNITY_2017_2_OR_NEWER && ENABLE_VR
99
using XRSettings = UnityEngine.XR.XRSettings;
10-
#elif UNITY_5_6_OR_NEWER
10+
#elif UNITY_5_6_OR_NEWER && ENABLE_VR
1111
using XRSettings = UnityEngine.VR.VRSettings;
1212
#endif
1313

@@ -409,7 +409,7 @@ void OnPreCull()
409409
m_Camera.ResetProjectionMatrix();
410410
m_Camera.nonJitteredProjectionMatrix = m_Camera.projectionMatrix;
411411

412-
#if !UNITY_SWITCH
412+
#if ENABLE_VR
413413
if (m_Camera.stereoEnabled)
414414
{
415415
m_Camera.ResetStereoProjectionMatrices();

PostProcessing/Runtime/PostProcessRenderContext.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
namespace UnityEngine.Rendering.PostProcessing
44
{
5-
#if UNITY_2017_2_OR_NEWER
5+
#if UNITY_2017_2_OR_NEWER && ENABLE_VR
66
using XRSettings = UnityEngine.XR.XRSettings;
7-
#elif UNITY_5_6_OR_NEWER
7+
#elif UNITY_5_6_OR_NEWER && ENABLE_VR
88
using XRSettings = UnityEngine.VR.VRSettings;
99
#endif
1010

0 commit comments

Comments
 (0)