Check for null pointer in RasterizerSceneGLES2::render_shadow

Fixes #25131
This commit is contained in:
Stanislav 2019-01-19 16:48:43 +03:00
parent 7f9209781c
commit dc7d9f8868

View file

@ -3015,7 +3015,9 @@ void RasterizerSceneGLES2::render_shadow(RID p_light, RID p_shadow_atlas, int p_
}
}
if (storage->frame.current_rt) {
glViewport(0, 0, storage->frame.current_rt->width, storage->frame.current_rt->height);
}
glColorMask(1, 1, 1, 1);
}