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 | auto lightStage = renderContext->_scene->getStage<LightStage>(); | 435 | auto lightStage = renderContext->_scene->getStage<LightStage>(); |
| 436 | assert(lightStage); | 436 | assert(lightStage); |
| 437 | assert(lightStage->getNumLights() > 0); | 437 | assert(lightStage->getNumLights() > 0); |
| 438 | auto lightAndShadow = lightStage->getLightAndShadow(0); | 438 | auto lightAndShadow = lightStage->getCurrentKeyLightAndShadow(); |
| 439 | const auto& globalShadow = lightAndShadow.second; | 439 | const auto& globalShadow = lightAndShadow.second; |
| 440 | if (globalShadow) { | 440 | if (globalShadow) { |
| 441 | batch.setResourceTexture(Shadow, globalShadow->map); | 441 | batch.setResourceTexture(Shadow, globalShadow->map); |