diff options
author | Henrik Andersson <henke@henkeandersson.se> | 2017-08-03 01:52:33 +0200 |
---|---|---|
committer | Henrik Andersson <henke@henkeandersson.se> | 2017-08-03 04:04:11 +0200 |
commit | fdc421836f3cc816f584aa738698ab6a122a5368 (patch) | |
tree | 221c21a77fd93e1f27c3b3fe1c98b09d47ecc79c /drivers | |
parent | aef974e7a8577f857be8cf89f02844575d0839bb (diff) |
Make it possible to render ImmediateGeometry
Geometry for ImmediateGeometry was never added inside _fill_render_list.
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gles3/rasterizer_scene_gles3.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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: { |