Lock the texture before calling renderRoI