godot
godot copied to clipboard
TextureRD: Don't change its rid when assigned an empty `texture_rd_rid`
Fixes #95273, fixes #85989.
Don't change TextureRD's rid when assigned an empty texture_rd_rid
, Instead, repalce its texture by a placeholder texture. Check if texture_owner owns rd_texture to avoid printing errors when the user has freed texture_rd_rid
of TextureRD.
Supersedes #103114