mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 21:12:53 +02:00
Fixed possible crash.
This commit is contained in:
parent
777862f253
commit
df7a8389b3
1 changed files with 1 additions and 2 deletions
|
@ -121,8 +121,7 @@ void RenderShadowMap::run(const render::RenderContextPointer& renderContext, con
|
||||||
assert(lightStage);
|
assert(lightStage);
|
||||||
|
|
||||||
// Exit if current keylight does not cast shadows
|
// Exit if current keylight does not cast shadows
|
||||||
bool castShadows = lightStage->getCurrentKeyLight()->getCastShadows();
|
if (!lightStage->getCurrentKeyLight() || !lightStage->getCurrentKeyLight()->getCastShadows()) {
|
||||||
if (!castShadows) {
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue