Showing the changes to libraries/render-utils/src/DebugDeferredBuffer.cpp (1 of 7 files). Show all
Unified · Split
| @@ -435,7 +435,7 @@ void DebugDeferredBuffer::run(const RenderContextPointer& renderContext, const I · 434 unmodified lines | ||
| 435 | 435 | auto lightStage = renderContext->_scene->getStage<LightStage>(); |
| 436 | 436 | assert(lightStage); |
| 437 | 437 | assert(lightStage->getNumLights() > 0); |
| 438 | − auto lightAndShadow = lightStage->getLightAndShadow(0); | |
| 438 | + auto lightAndShadow = lightStage->getCurrentKeyLightAndShadow(); | |
| 439 | 439 | const auto& globalShadow = lightAndShadow.second; |
| 440 | 440 | if (globalShadow) { |
| 441 | 441 | batch.setResourceTexture(Shadow, globalShadow->map); |