mirror of
https://github.com/godotengine/godot
synced 2024-11-02 14:43:31 +00:00
Fix comment
This commit is contained in:
parent
6289e7d147
commit
b52a2f3dfa
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue