Render target not updating size

Update, found a solution. I was using UpdateResourceImmediate but it looks like that does not clean the cache, for that I had to use UpdateResource and that worked