Make it possible to render ImmediateGeometry

Geometry for ImmediateGeometry was never added inside _fill_render_list.
This commit is contained in:
Henrik Andersson 2017-08-03 01:52:33 +02:00
parent aef974e7a8
commit fdc421836f

View file

@ -3051,6 +3051,11 @@ void RasterizerSceneGLES3::_fill_render_list(InstanceBase **p_cull_result, int p
} break; } break;
case VS::INSTANCE_IMMEDIATE: { case VS::INSTANCE_IMMEDIATE: {
RasterizerStorageGLES3::Immediate *immediate = storage->immediate_owner.getptr(inst->base);
ERR_CONTINUE(!immediate);
_add_geometry(immediate,inst,NULL,-1,p_shadow);
} break; } break;
case VS::INSTANCE_PARTICLES: { case VS::INSTANCE_PARTICLES: {