]> git.tdb.fi Git - libs/gl.git/blobdiff - source/blend.cpp
Refresh lighting and culling uniforms if the camera changes in pop_state
[libs/gl.git] / source / blend.cpp
index cecd562dc1019f389e151049b94d4c01e55b2623..184d5ad534f1aca6bcf441726b54e8c80af94a1b 100644 (file)
@@ -1,6 +1,6 @@
+#include <msp/gl/extensions/ext_blend_minmax.h>
+#include <msp/gl/extensions/ext_blend_subtract.h>
 #include "blend.h"
-#include "ext_blend_minmax.h"
-#include "ext_blend_subtract.h"
 
 namespace Msp {
 namespace GL {
@@ -33,7 +33,7 @@ void Blend::bind() const
        if(set_current(this))
        {
                glEnable(GL_BLEND);
-               if(glBlendEquation)
+               if(EXT_blend_minmax)
                        glBlendEquation(eq);
                glBlendFunc(src_factor, dst_factor);
        }