From b52a2f3dfa9bacb84ba40dadbb0ed3c32c5d3afd Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Mon, 29 Jul 2019 15:45:40 -0300 Subject: [PATCH] Fix comment --- servers/visual/rasterizer_rd/rasterizer_canvas_rd.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/servers/visual/rasterizer_rd/rasterizer_canvas_rd.cpp b/servers/visual/rasterizer_rd/rasterizer_canvas_rd.cpp index 9265a68b43a..3687687dcc1 100644 --- a/servers/visual/rasterizer_rd/rasterizer_canvas_rd.cpp +++ b/servers/visual/rasterizer_rd/rasterizer_canvas_rd.cpp @@ -1550,7 +1550,8 @@ void RasterizerCanvasRD::canvas_render_items(RID p_to_render_target, Item *p_ite if (md->last_frame != RasterizerRD::get_frame_number()) { md->last_frame = RasterizerRD::get_frame_number(); if (!RD::get_singleton()->uniform_set_is_valid(md->uniform_set)) { - //textures may have been removed, hence invalidating this uniform set. + // uniform set may be gone because a dependency was erased. In this case, it will happen + // if a texture is deleted, so just re-create it. storage->material_force_update_textures(ci->material, RasterizerStorageRD::SHADER_TYPE_2D); } }