Sign in to follow this  

glPushAttrib bit for CURRENT_PROGRAM?

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?


Share this post

Link to post
Share on other sites

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