]> git.tdb.fi Git - libs/gl.git/blobdiff - source/texture.cpp
Complete rewrite of extension handling
[libs/gl.git] / source / texture.cpp
index 57b1b78dee6de407837b3b78d2bf980d189845e6..c8a1371c5b0a7724effdeb33ec7f529e70372a47 100644 (file)
@@ -1,6 +1,6 @@
 #include <msp/strings/format.h>
 #include "error.h"
-#include "extension.h"
+#include "sgis_generate_mipmap.h"
 #include "texture.h"
 #include "texunit.h"
 
@@ -126,7 +126,7 @@ void Texture::set_wrap_r(TextureWrap w)
 void Texture::set_generate_mipmap(bool gm)
 {
        if(gm)
-               static RequireExtension _ext("GL_SGIS_generate_mipmap");
+               static Require _req(SGIS_generate_mipmap);
        gen_mipmap = gm;
        update_parameter(GENERATE_MIPMAP);
 }