- ogl.blend_func_separate(GL_ONE, GL_ONE_MINUS_SRC_ALPHA, GL_ONE, GL_ONE_MINUS_SRC_ALPHA); \r
+ switch(params.blend_mode)\r
+ {\r
+ case blend_mode::mix:\r
+ ogl.blend_func(GL_ONE, GL_ONE); \r
+ break;\r
+ default: \r
+ ogl.blend_func(GL_ONE, GL_ONE_MINUS_SRC_ALPHA); \r
+ } \r