From 3e211b7f74981ca8444bd534c44b9c7c44b1a7ab Mon Sep 17 00:00:00 2001 From: clayjohn Date: Thu, 15 Jun 2023 13:06:42 -0700 Subject: [PATCH] Copy texture filter/repeat modes when replacing a texture in the GL Compatibility backend --- drivers/gles3/storage/texture_storage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gles3/storage/texture_storage.cpp b/drivers/gles3/storage/texture_storage.cpp index c4fef89cfd2..f4206cc70c3 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 proxies_to_update = tex_to->proxies; Vector 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