I’m trying to use glPushAttrib to push the “clear color” (set using glClearColor) onto the attribute stack. The problem is: I’m not sure which flag to send to glPushAttrib.
Background: I normally use glClearColor to set my app’s “background” color. However, in a few places I have to change the glClearColor to clear out a texture that I’m drawing into. I want to use the attrib stack to push and then pop the “background” color so it doesn’t get messed up.
Thanks!
According to glPushAttrib this is: