Merge pull request #25134 from staddy/master
Check for null pointer in RasterizerSceneGLES2::render_shadow
This commit is contained in:
commit
7713ec8637
1 changed files with 3 additions and 1 deletions
|
@ -3041,7 +3041,9 @@ void RasterizerSceneGLES2::render_shadow(RID p_light, RID p_shadow_atlas, int p_
|
|||
}
|
||||
}
|
||||
|
||||
glViewport(0, 0, storage->frame.current_rt->width, storage->frame.current_rt->height);
|
||||
if (storage->frame.current_rt) {
|
||||
glViewport(0, 0, storage->frame.current_rt->width, storage->frame.current_rt->height);
|
||||
}
|
||||
glColorMask(1, 1, 1, 1);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue