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
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);
|
||||
|
||||
// Exit if current keylight does not cast shadows
|
||||
bool castShadows = lightStage->getCurrentKeyLight()->getCastShadows();
|
||||
if (!castShadows) {
|
||||
if (!lightStage->getCurrentKeyLight() || !lightStage->getCurrentKeyLight()->getCastShadows()) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue