if(set_current(this))
{
glEnable(GL_BLEND);
- if(glBlendEquation)
+ if(EXT_blend_minmax)
glBlendEquation(eq);
glBlendFunc(src_factor, dst_factor);
}
return blend;
}
+const Blend &Blend::additive()
+{
+ static Blend blend(ONE, ONE);
+ return blend;
+}
+
+const Blend &Blend::additive_alpha()
+{
+ static Blend blend(SRC_ALPHA, ONE);
+ return blend;
+}
+
} // namespace GL
} // namespace Msp