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