Skip to content

Commit fec028b

Browse files
Antoine Lelievresebastienlagarde
andcommitted
[Core] Fix XR support in CoreUtils.Drawfullscreen (#6287)
* Fix XR support in CoreUtils.DrawFullscreen function * Updated changelog Co-authored-by: sebastienlagarde <[email protected]>
1 parent 2562f57 commit fec028b

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
@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
99
### Fixed
1010
- Fixed potentially conflicting runtime Rendering Debugger UI command by adding an option to disable runtime UI altogether (1345783).
1111
- Fixed issue when changing volume profiles at runtime with a script (case 1364256).
12+
- Fixed XR support in CoreUtils.DrawFullscreen function.
1213

1314
## [10.7.0] - 2021-07-02
1415

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -725,7 +725,7 @@ public static void DrawFullScreen(CommandBuffer commandBuffer, Material material
725725
RenderTargetIdentifier colorBuffer,
726726
MaterialPropertyBlock properties = null, int shaderPassId = 0)
727727
{
728-
commandBuffer.SetRenderTarget(colorBuffer);
728+
commandBuffer.SetRenderTarget(colorBuffer, 0, CubemapFace.Unknown, -1);
729729
commandBuffer.DrawProcedural(Matrix4x4.identity, material, shaderPassId, MeshTopology.Triangles, 3, 1, properties);
730730
}
731731

0 commit comments

Comments
 (0)