Skip to content

Commit 8ad8e60

Browse files
pigselatedEvergreen
authored andcommitted
UUM-92512: Light Cookie Atlas is leaking
1 parent b2d9c3e commit 8ad8e60

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Packages/com.unity.render-pipelines.universal/Runtime/ForwardLights.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,8 @@ internal void Cleanup()
506506
m_TileMasksBuffer = null;
507507
m_ReflectionProbeManager.Dispose();
508508
}
509+
m_LightCookieManager?.Dispose();
510+
m_LightCookieManager = null;
509511
}
510512

511513
void InitializeLightConstants(NativeArray<VisibleLight> lights, int lightIndex, bool supportsLightLayers, out Vector4 lightPos, out Vector4 lightColor, out Vector4 lightAttenuation, out Vector4 lightSpotDir, out Vector4 lightOcclusionProbeChannel, out uint lightLayerMask, out bool isSubtractive)

0 commit comments

Comments
 (0)