#include <msp/strings/format.h>
#include "error.h"
+#include "sgis_generate_mipmap.h"
#include "texture.h"
#include "texunit.h"
void Texture::set_generate_mipmap(bool gm)
{
+ if(gm)
+ static Require _req(SGIS_generate_mipmap);
gen_mipmap = gm;
update_parameter(GENERATE_MIPMAP);
}