]> git.tdb.fi Git - libs/gl.git/blobdiff - source/blend.cpp
Use RAII checks for extensions and versions
[libs/gl.git] / source / blend.cpp
index c9407c2130fe3e7bb9d0770ee194ded9bd8d2649..854b2032d4e26ea31168beaf141790d6ffdb536f 100644 (file)
@@ -5,14 +5,16 @@ Copyright © 2008  Mikko Rasa, Mikkosoft Productions
 Distributed under the LGPL
 */
 
-#define GL_GLEXT_PROTOTYPES
 #include "blend.h"
+#include "extension.h"
+#include "version_1_2.h"
 
 namespace Msp {
 namespace GL {
 
 void blend_equation(BlendEquation eq)
 {
+       static RequireVersion _ver(1, 2);
        glBlendEquation(eq);
 }