Skip to main content
edited title
Link
user1430
user1430

What BlendFunc / gl_blend does glBlendFunc do when having wrong enumgiven an incorrect enumeration value?

Source Link

What BlendFunc / gl_blend does when having wrong enum

In cocos2d-x, I am using particle system from plist with blend values: dst = 1, and src = 100 which is wrong enum for gl_blend.

Although app logged "OpenGL error 0x0500" but it still run and showed a good blend effect. And i can not find the right pairs of dst and src to recreate that effect.

So i hope someone can tell me how BlendFunc / gl_blend will work when it having bad src value. Base on that i hope i can recreate that effect without using wrong src value. Thanks