How to assign a viewport-texture once?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Tort
	var texture = get_viewport().get_texture()
	
	get_node('sprite').texture = texture

This code works like a video texture. How to assign a texture once?