   Restoring GL State?
  Lets say that I have a project with a specific GL state for 2d rendering.Now lets say this is an expandable project via DLLs.Given those facts, I want to be able to return to a given 2d rendering GL state after custom drawing without making that DLL reset the GL state themselves.Is it possible to reset a GL state without setting each option itself?Thanks, Jason   
  Use glPushAttrib(...) and glPopAttrib() with the flags for the states you would like to save/restore. It works similarly to Push and Pop Matrix.http://pyopengl.sourceforge.net/documentation/manual/glPushAttrib.3G.html   ;  glPush/PopAttrib can be used to save and restore some OpenGL attributes. But AFAIK not everything is saved even with GL_ALL_ATTRIB. And I suspect these will go away in OpenGL3.   ;Ok thanks.I think the best solution is to make sure the extension DLL returns the state proper, undoing what they did. It makes the most sense. I was kind of hoping for a default solution to protect against bad programming, but after careful thought- no such solution could possibly exist :)   