crash bugfix for the irradiance cache

metadata
Wenzel Jakob 2010-12-02 22:32:16 +01:00
parent 6606e13c5c
commit c26f9f536f
1 changed files with 2 additions and 1 deletions

View File

@ -35,7 +35,8 @@ public:
IrradianceRecordVector() { } IrradianceRecordVector() { }
inline void put(const IrradianceCache::Record *rec) { inline void put(const IrradianceCache::Record *rec) {
m_samples.push_back(new IrradianceCache::Record(rec)); if (rec)
m_samples.push_back(new IrradianceCache::Record(rec));
} }
inline size_t size() const { inline size_t size() const {