File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ PortalImageInfiniteLight
36
36
]
37
37
38
38
```cpp
39
+ <<Light Interface>>
39
40
SampledSpectrum Phi(SampledWavelengths lambda) const;
40
41
```
41
42
@@ -434,11 +435,11 @@ const DenselySampledSpectrum *LightBase::LookupSpectrum(Spectrum s) {
434
435
static std::mutex mutex;
435
436
mutex.lock();
436
437
if (!spectrumCache)
437
- spectrumCache = new InternCache<DenselySampledSpectrum>(
438
+ spectrumCache = new InternCache<DenselySampledSpectrum>(
438
439
#ifdef PBRT_BUILD_GPU_RENDERER
439
- Options->useGPU ? Allocator(&CUDATrackedMemoryResource::singleton) :
440
+ Options->useGPU ? Allocator(&CUDATrackedMemoryResource::singleton) :
440
441
#endif
441
- Allocator{});
442
+ Allocator{});
442
443
mutex.unlock();
443
444
444
445
<<Return unique DenselySampledSpectrum from intern cache for s>>
You can’t perform that action at this time.
0 commit comments