Sign in to follow this  

glPushAttrib bit for CURRENT_PROGRAM?

This topic is 2592 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello all,

I need to bind a program and do some render to texture operations without disturbing the current gl state in my app. So I do a glPushAttrib for various gl settings that I need to change and a glPopAttrib when I'm done. However, I can't seem to find a bit for glPushAttrib that will save the current active program. I have to manually do a glGetIntegerv( GL_CURRENT_PROGRAM ), then a glUseProgram() to restore it.

Does anyone know if there is any parameter to glPushAttrib that will save the current program?

thanks!

Share this post


Link to post
Share on other sites

This topic is 2592 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this