mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:24:00 +02:00
Fixed possible crash.
This commit is contained in:
parent
12f4b8dbb1
commit
26e7a85a95
1 changed files with 4 additions and 0 deletions
|
@ -386,6 +386,10 @@ void RenderShadowCascadeSetup::run(const render::RenderContextPointer& renderCon
|
|||
assert(lightStage);
|
||||
|
||||
// Exit if current keylight does not cast shadows
|
||||
if (!lightStage->getCurrentKeyLight()) {
|
||||
return;
|
||||
}
|
||||
|
||||
bool castShadows = lightStage->getCurrentKeyLight()->getCastShadows();
|
||||
if (!castShadows) {
|
||||
output.edit0() = ItemFilter::Builder::nothing();
|
||||
|
|
Loading…
Reference in a new issue