#include "blend.h"
-#include "extension.h"
-#include "version_1_2.h"
+#include "ext_blend_minmax.h"
+#include "ext_blend_subtract.h"
namespace Msp {
namespace GL {
src_factor(sf),
dst_factor(df)
{
- if(eq!=ADD)
- static RequireVersion _ver(1, 2);
+ if(eq==MIN || eq==MAX)
+ static Require _req(EXT_blend_minmax);
+ else if(eq==SUBTRACT || eq==REVERSE_SUBTRACT)
+ static Require _req(EXT_blend_subtract);
}
void Blend::bind() const