Skip to content

Commit

Permalink
upgrade HDRP API in tests (#992)
Browse files Browse the repository at this point in the history
  • Loading branch information
glabute authored May 29, 2024
1 parent cbfe9ea commit 6828a18
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions com.unity.cinemachine/Tests/Editor/IsHDRP.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ public class IsHDRPTests
[Test]
public void IsHDRP()
{
#if UNITY_2023_3_OR_NEWER
UnityEngine.Assertions.Assert.IsNotNull(GraphicsSettings.defaultRenderPipeline);
#else
UnityEngine.Assertions.Assert.IsNotNull(GraphicsSettings.renderPipelineAsset);
#endif
}
}
}
Expand Down
4 changes: 4 additions & 0 deletions com.unity.cinemachine/Tests/Runtime/IsHDRP.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ public class IsHDRPTests
[Test]
public void IsHDRP()
{
#if UNITY_2023_3_OR_NEWER
UnityEngine.Assertions.Assert.IsNotNull(GraphicsSettings.defaultRenderPipeline);
#else
UnityEngine.Assertions.Assert.IsNotNull(GraphicsSettings.renderPipelineAsset);
#endif
}
}
}
Expand Down

0 comments on commit 6828a18

Please sign in to comment.