2

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?

Mike2012
  • 7,629
  • 15
  • 84
  • 135

1 Answers1

3

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

Jerry Coffin
  • 476,176
  • 80
  • 629
  • 1,111