Skip to content

Commit

Permalink
Merge pull request #78287 from clayjohn/GLES3-texture-replace
Browse files Browse the repository at this point in the history
Copy texture filter/repeat modes when replacing a texture in the GL Compatibility backend
  • Loading branch information
akien-mga committed Jun 16, 2023
2 parents 1710a7d + 3e211b7 commit 9e81aed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gles3/storage/texture_storage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 9e81aed

Please sign in to comment.