diff --git a/com.unity.render-pipelines.high-definition/CHANGELOG.md b/com.unity.render-pipelines.high-definition/CHANGELOG.md index 1e2de85461e..3e9f717ebf7 100644 --- a/com.unity.render-pipelines.high-definition/CHANGELOG.md +++ b/com.unity.render-pipelines.high-definition/CHANGELOG.md @@ -32,6 +32,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - Fixed a small discrepancy in the marker placement in light intensity sliders (case 1299750) - Fixed issue with VT resolve pass rendergraph errors when opaque and transparent are disabled in frame settings. - Fixed a bug in the sphere-aabb light cluster (case 1294767). +- Fixed issue when submitting SRPContext during EndCameraRendering. ### Changed - Removed the material pass probe volumes evaluation mode. diff --git a/com.unity.render-pipelines.high-definition/Runtime/RenderPipeline/HDRenderPipeline.cs b/com.unity.render-pipelines.high-definition/Runtime/RenderPipeline/HDRenderPipeline.cs index 88bfa3ea814..8318f3e8d5e 100644 --- a/com.unity.render-pipelines.high-definition/Runtime/RenderPipeline/HDRenderPipeline.cs +++ b/com.unity.render-pipelines.high-definition/Runtime/RenderPipeline/HDRenderPipeline.cs @@ -1902,9 +1902,11 @@ ref _cullingResults cmd.SetInvertCulling(renderRequest.cameraSettings.invertFaceCulling); ExecuteRenderRequest(renderRequest, renderContext, cmd, AOVRequestData.defaultAOVRequestDataNonAlloc); cmd.SetInvertCulling(false); - UnityEngine.Rendering.RenderPipeline.EndCameraRendering(renderContext, renderRequest.hdCamera.camera); } + // EndCameraRendering callback should be executed outside of any profiling scope in case user code submits the renderContext + EndCameraRendering(renderContext, renderRequest.hdCamera.camera); + { var target = renderRequest.target; // Handle the copy if requested