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.87k stars 1.18k forks source link

Bug fix for TransformCache #193

Closed phg1024 closed 5 years ago

phg1024 commented 6 years ago

hashTable.resize(512) should be done after hashTable.clear(), otherwise the size of the hash table will be 0 after Clear is called. When pbrt is compiled as a library, this would lead to crash in multiple rendering passes.

mmp commented 6 years ago

Thanks!!

mmp commented 5 years ago

Forgot to merge this--sorry!