From fdc421836f3cc816f584aa738698ab6a122a5368 Mon Sep 17 00:00:00 2001 From: Henrik Andersson Date: Thu, 3 Aug 2017 01:52:33 +0200 Subject: Make it possible to render ImmediateGeometry Geometry for ImmediateGeometry was never added inside _fill_render_list. --- drivers/gles3/rasterizer_scene_gles3.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'drivers') diff --git a/drivers/gles3/rasterizer_scene_gles3.cpp b/drivers/gles3/rasterizer_scene_gles3.cpp index cd74c450f5..a75641c273 100644 --- a/drivers/gles3/rasterizer_scene_gles3.cpp +++ b/drivers/gles3/rasterizer_scene_gles3.cpp @@ -3051,6 +3051,11 @@ void RasterizerSceneGLES3::_fill_render_list(InstanceBase **p_cull_result, int p } break; 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; case VS::INSTANCE_PARTICLES: { -- cgit v1.2.3