mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 11:07:07 +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);
|
assert(lightStage);
|
||||||
|
|
||||||
// Exit if current keylight does not cast shadows
|
// Exit if current keylight does not cast shadows
|
||||||
|
if (!lightStage->getCurrentKeyLight()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
bool castShadows = lightStage->getCurrentKeyLight()->getCastShadows();
|
bool castShadows = lightStage->getCurrentKeyLight()->getCastShadows();
|
||||||
if (!castShadows) {
|
if (!castShadows) {
|
||||||
output.edit0() = ItemFilter::Builder::nothing();
|
output.edit0() = ItemFilter::Builder::nothing();
|
||||||
|
|
Loading…
Reference in a new issue