diff --git a/src/vrend_renderer.c b/src/vrend_renderer.c index da7cbed..00b61eb 100644 --- a/src/vrend_renderer.c +++ b/src/vrend_renderer.c @@ -4031,6 +4031,9 @@ int vrend_renderer_resource_attach_iov(int res_handle, struct iovec *iov, if (!res) return EINVAL; + if (res->iov) + return 0; + /* work out size and max resource size */ res->iov = iov; res->num_iovs = num_iovs;