Avoid copying CanvasTexture when updating proxy

(cherry picked from commit 84482ef90b)
This commit is contained in:
clayjohn 2023-03-07 10:33:48 -08:00 committed by Yuri Sizov
parent 1d21652f80
commit 5662542526
2 changed files with 6 additions and 0 deletions

View file

@ -832,6 +832,8 @@ void TextureStorage::texture_proxy_update(RID p_texture, RID p_proxy_to) {
tex->is_render_target = false;
tex->is_proxy = true;
tex->proxies.clear();
tex->canvas_texture = nullptr;
tex->tex_id = 0;
proxy_to->proxies.push_back(p_texture);
}