added popping missing attribute for glMatrixMode