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