Skip to content

Commit d4848bd

Browse files
[Core] Fix XR support in CoreUtils.Drawfullscreen (#6287)
* Fix XR support in CoreUtils.DrawFullscreen function * Updated changelog Co-authored-by: sebastienlagarde <sebastien@unity3d.com>
1 parent 225165a commit d4848bd

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
1212

1313
### Fixed
1414
- Fixed issue when changing volume profiles at runtime with a script (case 1364256).
15+
- Fixed XR support in CoreUtils.DrawFullscreen function.
1516

1617
## [13.1.1] - 2021-10-04
1718

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -944,7 +944,7 @@ public static void DrawFullScreen(CommandBuffer commandBuffer, Material material
944944
RenderTargetIdentifier colorBuffer,
945945
MaterialPropertyBlock properties = null, int shaderPassId = 0)
946946
{
947-
commandBuffer.SetRenderTarget(colorBuffer);
947+
commandBuffer.SetRenderTarget(colorBuffer, 0, CubemapFace.Unknown, -1);
948948
commandBuffer.DrawProcedural(Matrix4x4.identity, material, shaderPassId, MeshTopology.Triangles, 3, 1, properties);
949949
}
950950

0 commit comments

Comments
 (0)