X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Ftexture.cpp;h=c8a1371c5b0a7724effdeb33ec7f529e70372a47;hp=57b1b78dee6de407837b3b78d2bf980d189845e6;hb=6afbace895a7bbcf216ab8e48280ea0303ab5892;hpb=485315ca65cb40f33253008a79b0933997bd74f5 diff --git a/source/texture.cpp b/source/texture.cpp index 57b1b78d..c8a1371c 100644 --- a/source/texture.cpp +++ b/source/texture.cpp @@ -1,6 +1,6 @@ #include #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); }