Switching FBO Wrap Parameters

I was hoping to toggle between the wrap parameters of an FBO in a video application I’m working on.

Right now, they settings are established at the beginning:

ofFbo::Settings s;
s.width = ofGetWidth();
s.height = ofGetHeight();
s.wrapModeHorizontal = GL_MIRRORED_REPEAT;
s.wrapModeVertical = GL_MIRRORED_REPEAT;

If I use a variable int with switchable types of wrapping, it doesn’t work.

Is there an accepted approach for doing this kind of thing?