Fix comment

This commit is contained in:
Juan Linietsky 2019-07-29 15:45:40 -03:00
parent 6289e7d147
commit b52a2f3dfa

View file

@ -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()) { if (md->last_frame != RasterizerRD::get_frame_number()) {
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)) { 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); storage->material_force_update_textures(ci->material, RasterizerStorageRD::SHADER_TYPE_2D);
} }
} }