d3dx9: Skip AddRef + Release if SetValue is called with the old texture.