Skip to content

Commit 3ec4dc1

Browse files
Remyuudashuai009
authored andcommitted
tiny issue fix
1 parent a0d07ae commit 3ec4dc1

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

chapter-12-Light_Sources/chapter-12.1-Light_Interface.typ

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ PortalImageInfiniteLight
3636
]
3737

3838
```cpp
39+
<<Light Interface>>
3940
SampledSpectrum Phi(SampledWavelengths lambda) const;
4041
```
4142

@@ -434,11 +435,11 @@ const DenselySampledSpectrum *LightBase::LookupSpectrum(Spectrum s) {
434435
static std::mutex mutex;
435436
mutex.lock();
436437
if (!spectrumCache)
437-
spectrumCache = new InternCache<DenselySampledSpectrum>(
438+
spectrumCache = new InternCache<DenselySampledSpectrum>(
438439
#ifdef PBRT_BUILD_GPU_RENDERER
439-
Options->useGPU ? Allocator(&CUDATrackedMemoryResource::singleton) :
440+
Options->useGPU ? Allocator(&CUDATrackedMemoryResource::singleton) :
440441
#endif
441-
Allocator{});
442+
Allocator{});
442443
mutex.unlock();
443444
444445
<<Return unique DenselySampledSpectrum from intern cache for s>>

0 commit comments

Comments
 (0)