Mike2012
Mike2012

Reputation: 7725

Preserving the GLBlendFunc

I need to preserve the current GlBlendFunc so can restore it after I do some work. It seems that this is not one of the attributes that can be saved with GLPushAttrib, is there some other similar method I can use to preserve the state?

Upvotes: 2

Views: 722

Answers (1)

Jerry Coffin
Jerry Coffin

Reputation: 490488

glGet with GL_BLEND_SRC and GL_BLEND_DST (and glIsEnabled(GL_BLEND), if you're not sure whether it's enabled).

Upvotes: 3

Related Questions