summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/gles3/storage/texture_storage.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gles3/storage/texture_storage.cpp b/drivers/gles3/storage/texture_storage.cpp
index 6c17cb50d8..f362a21d8c 100644
--- a/drivers/gles3/storage/texture_storage.cpp
+++ b/drivers/gles3/storage/texture_storage.cpp
@@ -1080,7 +1080,7 @@ void TextureStorage::texture_replace(RID p_texture, RID p_by_texture) {
Vector<RID> proxies_to_update = tex_to->proxies;
Vector<RID> proxies_to_redirect = tex_from->proxies;
- tex_to->copy_from(*tex_from);
+ *tex_to = *tex_from;
tex_to->proxies = proxies_to_update; //restore proxies, so they can be updated