Copy texture filter/repeat modes when replacing a texture in the GL Compatibility backend

This commit is contained in:
clayjohn 2023-06-15 13:06:42 -07:00
parent c0d8d91b15
commit 3e211b7f74

View file

@ -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