diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-06-16 10:23:03 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-06-16 10:23:03 +0200 |
commit | 9e81aeda335a1fb0006965e7b44b099b2e2a55c1 (patch) | |
tree | 0c7aaa9af73b3fd2455a413dc2ed637a1e9c1fc7 /drivers/gles3/storage/texture_storage.cpp | |
parent | 1710a7d30313728e90ea35243b0230e411e17483 (diff) | |
parent | 3e211b7f74981ca8444bd534c44b9c7c44b1a7ab (diff) | |
download | redot-engine-9e81aeda335a1fb0006965e7b44b099b2e2a55c1.tar.gz |
Merge pull request #78287 from clayjohn/GLES3-texture-replace
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.cpp | 2 |
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 |