Skip to content

Commit 0cea810

Browse files
authored
fix black screen in XR when HDRP package is present but not used (#137)
1 parent 5dea391 commit 0cea810

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

com.unity.render-pipelines.high-definition/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -532,6 +532,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
532532
- Fixed culling of planar reflection probes that change position (case 1218651)
533533
- Fixed null reference when processing lightprobe (case 1235285)
534534
- Fix issue causing wrong planar reflection rendering when more than one camera is present.
535+
- Fix black screen in XR when HDRP package is present but not used.
535536

536537
### Changed
537538
- Color buffer pyramid is not allocated anymore if neither refraction nor distortion are enabled

com.unity.render-pipelines.high-definition/Runtime/RenderPipeline/XR/XRSystem.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ internal XRSystem(RenderPipelineResources.ShaderResources shaders)
7373
[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSplashScreen)]
7474
internal static void XRSystemInit()
7575
{
76+
if (GraphicsSettings.currentRenderPipeline == null)
77+
return;
7678

7779
#if UNITY_2020_2_OR_NEWER
7880
SubsystemManager.GetSubsystems(displayList);

0 commit comments

Comments
 (0)