Skip to content

Commit 2a20b51

Browse files
authored
Correct typo in requestedDirectionalCount variable
1 parent 9c18204 commit 2a20b51

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Packages/com.unity.render-pipelines.high-definition/Runtime/Lighting/Light/HDGpuLightsBuilder.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,10 +214,10 @@ private void AllocateLightData(int lightCount, int directionalLightCount)
214214
}
215215
m_LightCount = lightCount;
216216

217-
int requestedDurectinalCount = Math.Max(1, directionalLightCount);
218-
if (requestedDurectinalCount > m_DirectionalLightCapacity)
217+
int requestedDirectionalCount = Math.Max(1, directionalLightCount);
218+
if (requestedDirectionalCount > m_DirectionalLightCapacity)
219219
{
220-
m_DirectionalLightCapacity = Math.Max(Math.Max(m_DirectionalLightCapacity * 2, requestedDurectinalCount), ArrayCapacity);
220+
m_DirectionalLightCapacity = Math.Max(Math.Max(m_DirectionalLightCapacity * 2, requestedDirectionalCount), ArrayCapacity);
221221
m_DirectionalLights.ResizeArray(m_DirectionalLightCapacity);
222222
}
223223
m_DirectionalLightCount = directionalLightCount;

0 commit comments

Comments
 (0)