push/pop matrix only store and pop the current transformation matrix, which you can change with ofTranslate/Rotate/Scale or with ofLoadMatrix and ofMultMatrix but nothing else. Any other global state like ofSetRectMode is usually stored by using ofPush/PopStyle or just by setting it back to whatever is the original value manually
↧