Implement GL push/pop wrapper