Saving GLBlendFunc

I need to save the current GlBlendFunc in order to restore it after doing some action. It looks like this is not one of the attributes that can be persisted using GLPushAttrib, is there another similar method I can use to persist the state?

+2


a source to share


1 answer


glGet

with GL_BLEND_SRC

and GL_BLEND_DST

(and glIsEnabled(GL_BLEND)

if you're not sure if it's on).



+3


a source







All Articles