Merge "Fix memory corruption in SpotShadow" am: 8c85c00b5e

am: 8c8353a8c3

* commit '8c8353a8c3152bc3ee4b74815d64c65c2c9d1991':
  Fix memory corruption in SpotShadow
This commit is contained in:
John Reck
2015-11-11 18:08:15 +00:00
committed by android-build-merger

View File

@@ -742,7 +742,7 @@ inline void genNewPenumbraAndPairWithUmbra(const Vector2* penumbra, int penumbra
// vertex's location.
int newPenumbraNumber = indexDelta - 1;
float accumulatedDeltaLength[newPenumbraNumber];
float accumulatedDeltaLength[indexDelta];
float totalDeltaLength = 0;
// To save time, cache the previous umbra vertex info outside the loop