diff --git a/com.unity.render-pipelines.high-definition/CHANGELOG.md b/com.unity.render-pipelines.high-definition/CHANGELOG.md index cb97818af68..d7a6fee0df7 100644 --- a/com.unity.render-pipelines.high-definition/CHANGELOG.md +++ b/com.unity.render-pipelines.high-definition/CHANGELOG.md @@ -151,6 +151,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - Fixed the camera controller in the template with the old input system (case 1326816). - Fixed broken Lanczos filter artifacts on ps4, caused by a very aggressive epsilon (case 1328904) - Fixed global Settings ignore the path set via Fix All in HDRP wizard (case 1327978) +- Fixed issue with an assert getting triggered with OnDemand shadows. ### Changed - Changed Window/Render Pipeline/HD Render Pipeline Wizard to Window/Rendering/HDRP Wizard diff --git a/com.unity.render-pipelines.high-definition/Runtime/Lighting/Shadow/HDCachedShadowAtlas.cs b/com.unity.render-pipelines.high-definition/Runtime/Lighting/Shadow/HDCachedShadowAtlas.cs index 5c968626fd5..7f0f139e7f3 100644 --- a/com.unity.render-pipelines.high-definition/Runtime/Lighting/Shadow/HDCachedShadowAtlas.cs +++ b/com.unity.render-pipelines.high-definition/Runtime/Lighting/Shadow/HDCachedShadowAtlas.cs @@ -618,7 +618,8 @@ internal void MarkAsRendered(int shadowIdx) if (m_ShadowsPendingRendering.ContainsKey(shadowIdx)) { m_ShadowsPendingRendering.Remove(shadowIdx); - m_ShadowsWithValidData.Add(shadowIdx, shadowIdx); + if (!m_ShadowsWithValidData.ContainsKey(shadowIdx)) + m_ShadowsWithValidData.Add(shadowIdx, shadowIdx); } }