X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fblend.cpp;h=cecd562dc1019f389e151049b94d4c01e55b2623;hp=b2f59e17c5cb57250f20aba14ca158e81c818285;hb=6afbace895a7bbcf216ab8e48280ea0303ab5892;hpb=c473f9193d3e5088772b6e5ebf53b710e2976a92 diff --git a/source/blend.cpp b/source/blend.cpp index b2f59e17..cecd562d 100644 --- a/source/blend.cpp +++ b/source/blend.cpp @@ -1,13 +1,6 @@ -/* $Id$ - -This file is part of libmspgl -Copyright © 2008, 2010 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - #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 { @@ -29,8 +22,10 @@ Blend::Blend(BlendEquation e, BlendFactor sf, BlendFactor df): 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