diff options
author | Max Hilbrunner <mhilbrunner@users.noreply.github.com> | 2018-07-03 16:13:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-03 16:13:33 +0200 |
commit | 5af08779b9dd5f036ab312e131ef06898d89c521 (patch) | |
tree | d6ff1eb403d13e9e718c7e89ae313242785c74ac /drivers | |
parent | 6efc1ba6e09e8f8e0b5ca71dd581c6291beeec07 (diff) | |
parent | f6f7ada91bc6072eeaa05e996bad6001abc809cc (diff) |
Merge pull request #19682 from dragmz/particles_redraw_fix
Prevent redraws when an inactive Particles2D node is present
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gles3/rasterizer_canvas_gles3.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gles3/rasterizer_canvas_gles3.cpp b/drivers/gles3/rasterizer_canvas_gles3.cpp index bb4c8ab4d7..c2377e0c3e 100644 --- a/drivers/gles3/rasterizer_canvas_gles3.cpp +++ b/drivers/gles3/rasterizer_canvas_gles3.cpp @@ -832,6 +832,9 @@ void RasterizerCanvasGLES3::_canvas_item_render_commands(Item *p_item, Item *cur if (!particles) break; + if (particles->inactive && !particles->emitting) + break; + glVertexAttrib4f(VS::ARRAY_COLOR, 1, 1, 1, 1); //not used, so keep white VisualServerRaster::redraw_request(); |