Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7d9eb2ae authored by John Reck's avatar John Reck Committed by android-build-merger
Browse files

Merge "Fix memory corruption in SpotShadow" am: 8c85c00b am: 8c8353a8

am: 5bb2fdb4

* commit '5bb2fdb4':
  Fix memory corruption in SpotShadow
parents 3cc97f52 5bb2fdb4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -741,7 +741,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