summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorclayjohn <claynjohn@gmail.com>2023-03-07 10:33:48 -0800
committerYuri Sizov <yuris@humnom.net>2023-03-13 14:10:38 +0100
commit5662542526f95c57cb43c72e8f9804cdb2cd8906 (patch)
tree7bb21c38390f0fd564185c11d7eac5244ab5461b /drivers
parent1d21652f80458d73394f7fb8e4cf1cf907a098da (diff)
Avoid copying CanvasTexture when updating proxy
(cherry picked from commit 84482ef90bf5f902f14594d957af8c0e3866f88c)
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gles3/storage/texture_storage.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gles3/storage/texture_storage.cpp b/drivers/gles3/storage/texture_storage.cpp
index ce66943328..dae722186c 100644
--- a/drivers/gles3/storage/texture_storage.cpp
+++ b/drivers/gles3/storage/texture_storage.cpp
@@ -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);
}