From f6f7ada91bc6072eeaa05e996bad6001abc809cc Mon Sep 17 00:00:00 2001 From: Marcin Zawiejski Date: Wed, 20 Jun 2018 22:44:11 +0200 Subject: [PATCH] prevent redraws when an inactive Particles2D node is present --- drivers/gles3/rasterizer_canvas_gles3.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gles3/rasterizer_canvas_gles3.cpp b/drivers/gles3/rasterizer_canvas_gles3.cpp index bb4c8ab4d79..c2377e0c3e8 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();