summaryrefslogtreecommitdiffstats
path: root/drivers/gles3/storage/texture_storage.cpp
diff options
context:
space:
mode:
authorclayjohn <claynjohn@gmail.com>2023-06-15 13:06:42 -0700
committerclayjohn <claynjohn@gmail.com>2023-06-15 13:06:42 -0700
commit3e211b7f74981ca8444bd534c44b9c7c44b1a7ab (patch)
treeb0c753673468376ed4c29b395effdc3c8703f6ac /drivers/gles3/storage/texture_storage.cpp
parentc0d8d91b15597209a1ca865c6ff4f84f06f7de86 (diff)
downloadredot-engine-3e211b7f74981ca8444bd534c44b9c7c44b1a7ab.tar.gz
Copy texture filter/repeat modes when replacing a texture in the GL Compatibility backend
Diffstat (limited to 'drivers/gles3/storage/texture_storage.cpp')
-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 c4fef89cfd..f4206cc70c 100644
--- a/drivers/gles3/storage/texture_storage.cpp
+++ b/drivers/gles3/storage/texture_storage.cpp
@@ -1070,7 +1070,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