diff --git a/com.unity.render-pipelines.high-definition/Runtime/Lighting/LightLoop/LightLoop.cs b/com.unity.render-pipelines.high-definition/Runtime/Lighting/LightLoop/LightLoop.cs index 390ab604361..f208595d090 100644 --- a/com.unity.render-pipelines.high-definition/Runtime/Lighting/LightLoop/LightLoop.cs +++ b/com.unity.render-pipelines.high-definition/Runtime/Lighting/LightLoop/LightLoop.cs @@ -2712,7 +2712,8 @@ bool PrepareLightsForGPU(CommandBuffer cmd, HDCamera hdCamera, CullingResults cu internal void ReserveCookieAtlasTexture(HDAdditionalLightData hdLightData, Light light, HDLightType lightType) { // Note: light component can be null if a Light is used for shuriken particle lighting. - switch (hdLightData.ComputeLightType(light)) + lightType = light == null ? HDLightType.Point : lightType; + switch (lightType) { case HDLightType.Directional: m_TextureCaches.lightCookieManager.ReserveSpace(hdLightData.surfaceTexture);