Skip to main content
GameDev.net gamedev.net
🔒 Locked

glPushAttrib() quick question

Started by Jason2Jason Apr 19, 2003 at 6:04 PM 1 replies 450+ views
Original Post
Jason2Jason
Jason2Jason
Hey people, Just a quicky: If i use glPushAttrib() like this:
glPushAttrib(GL_CURRENT_BIT | GL_LINE_BIT);
 
Would i need to call just the one glPopAttrib(), or 2. I''m pretty sure its just the one, but I thought I''d ask here as well. Thx, -J
beaton_john
beaton_john
can''t you take a look at the stack once you''ve pushed it? i forget how, i thing GL_ATTRIBUTE_STACK_DEPTH or something like that
Myopic Rhino
Myopic Rhino
Just once, regardless of how many attributes you change. When you pop the stack, all those attributes will be set back to what they were before the push.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.