mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00:00
Ensure reflection atlas is valid before rendering
This commit is contained in:
parent
d61cd9149a
commit
f2d0ea6d40
3 changed files with 9 additions and 3 deletions
|
|
@ -811,6 +811,9 @@ bool LightStorage::reflection_probe_instance_begin_render(RID p_instance, RID p_
|
|||
|
||||
ERR_FAIL_NULL_V(atlas, false);
|
||||
|
||||
ERR_FAIL_COND_V_MSG(atlas->size < 4, false, "Attempted to render to a reflection atlas of invalid resolution.");
|
||||
ERR_FAIL_COND_V_MSG(atlas->count < 1, false, "Attempted to render to a reflection atlas of size < 1.");
|
||||
|
||||
ReflectionProbeInstance *rpi = reflection_probe_instance_owner.get_or_null(p_instance);
|
||||
ERR_FAIL_NULL_V(rpi, false);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue