Revert "Reduced code by using glPushAttribi rather than get/set. This also appears to fix an issue on Intel windows drivers."

This reverts commit 42e647a910fa8051fb36a6ecedb177b0782053e6.
Reset unpack settings to OpenGL defaults.