summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorclayjohn <claynjohn@gmail.com>2023-03-07 10:33:48 -0800
committerclayjohn <claynjohn@gmail.com>2023-03-07 12:48:32 -0800
commit84482ef90bf5f902f14594d957af8c0e3866f88c (patch)
tree6cd291a33efcd8cb2a0fb9bd9a850d9073baf761 /drivers
parent3695fe5a573678c6491a6a33f19f9329d3256a48 (diff)
downloadredot-engine-84482ef90bf5f902f14594d957af8c0e3866f88c.tar.gz
Avoid copying CanvasTexture when updating proxy
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);
}