summaryrefslogtreecommitdiff
path: root/servers
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2019-07-29 15:45:40 -0300
committerJuan Linietsky <reduzio@gmail.com>2020-02-11 11:58:11 +0100
commitb52a2f3dfa9bacb84ba40dadbb0ed3c32c5d3afd (patch)
treed7f47810ff565848488a22f11015e30ef846191c /servers
parent6289e7d1479f6e7c9e55890c8c66d2e5e0a1481a (diff)
Fix comment
Diffstat (limited to 'servers')
-rw-r--r--servers/visual/rasterizer_rd/rasterizer_canvas_rd.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/servers/visual/rasterizer_rd/rasterizer_canvas_rd.cpp b/servers/visual/rasterizer_rd/rasterizer_canvas_rd.cpp
index 9265a68b43..3687687dcc 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);
}
}