mmp / pbrt-v3

Source code for pbrt, the renderer described in the third edition of "Physically Based Rendering: From Theory To Implementation", by Matt Pharr, Wenzel Jakob, and Greg Humphreys.
http://pbrt.org
BSD 2-Clause "Simplified" License
4.92k stars 1.2k forks source link

Fix corruption of stack if matrix is not invertible #40

Closed z-boson closed 9 years ago

z-boson commented 9 years ago

Fixes the corruption of the stack (writing to array index -1) if a matrix is not invertible.