开发者

Preserving the GLBlendFunc

开发者 https://www.devze.com 2022-12-29 07:37 出处:网络
I need to preserve the current GlBlendFunc socan 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

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?


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

0

精彩评论

暂无评论...
验证码 换一张
取 消