Explorar o código

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

clayjohn %!s(int64=2) %!d(string=hai) anos
pai
achega
3e211b7f74
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      drivers/gles3/storage/texture_storage.cpp

+ 1 - 1
drivers/gles3/storage/texture_storage.cpp

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