]> 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 899ccf599c255e8141fb14c2e3046af6fceaddbc..854b2032d4e26ea31168beaf141790d6ffdb536f 100644 (file)
@@ -5,7 +5,6 @@ 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"
@@ -15,7 +14,7 @@ namespace GL {
 
 void blend_equation(BlendEquation eq)
 {
-       require_version(1, 2);
+       static RequireVersion _ver(1, 2);
        glBlendEquation(eq);
 }