Merge pull request #78287 from clayjohn/GLES3-texture-replace

Copy texture filter/repeat modes when replacing a texture in the GL Compatibility backend
This commit is contained in:
Rémi Verschelde 2023-06-16 10:23:03 +02:00
commit 9e81aeda33
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

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