Skip to content

Commit 0129228

Browse files
Antoine Lelievresebastienlagarde
authored andcommitted
[Core] Fix XR support in CoreUtils.Drawfullscreen #6287
1 parent 7ab1b0c commit 0129228

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

com.unity.render-pipelines.core/CHANGELOG.md

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

77
## [12.1.3] - 2021-11-17
88

9-
Version Updated
10-
The version number for this package has increased due to a version update of a related graphics package.
9+
### Fixed
10+
- Fixed XR support in CoreUtils.DrawFullscreen function.
1111

1212
## [12.1.2] - 2021-10-22
1313

com.unity.render-pipelines.core/Runtime/Utilities/CoreUtils.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -795,7 +795,7 @@ public static void DrawFullScreen(CommandBuffer commandBuffer, Material material
795795
RenderTargetIdentifier colorBuffer,
796796
MaterialPropertyBlock properties = null, int shaderPassId = 0)
797797
{
798-
commandBuffer.SetRenderTarget(colorBuffer);
798+
commandBuffer.SetRenderTarget(colorBuffer, 0, CubemapFace.Unknown, -1);
799799
commandBuffer.DrawProcedural(Matrix4x4.identity, material, shaderPassId, MeshTopology.Triangles, 3, 1, properties);
800800
}
801801

0 commit comments

Comments
 (0)