Merge "Fix memory corruption in SpotShadow"
This commit is contained in:
@ -742,7 +742,7 @@ inline void genNewPenumbraAndPairWithUmbra(const Vector2* penumbra, int penumbra
|
|||||||
// vertex's location.
|
// vertex's location.
|
||||||
int newPenumbraNumber = indexDelta - 1;
|
int newPenumbraNumber = indexDelta - 1;
|
||||||
|
|
||||||
float accumulatedDeltaLength[newPenumbraNumber];
|
float accumulatedDeltaLength[indexDelta];
|
||||||
float totalDeltaLength = 0;
|
float totalDeltaLength = 0;
|
||||||
|
|
||||||
// To save time, cache the previous umbra vertex info outside the loop
|
// To save time, cache the previous umbra vertex info outside the loop
|
||||||
|
Reference in New Issue
Block a user