From e4638ccfdcdb58f81740fe707ec93b1be3208d2c Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Thu, 9 Aug 2012 10:21:08 +0300 Subject: [PATCH] Mipmap generation requires GL_SGIS_generate_mipmap --- source/texture.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/texture.cpp b/source/texture.cpp index 7ae1a2c2..57b1b78d 100644 --- a/source/texture.cpp +++ b/source/texture.cpp @@ -1,5 +1,6 @@ #include #include "error.h" +#include "extension.h" #include "texture.h" #include "texunit.h" @@ -124,6 +125,8 @@ void Texture::set_wrap_r(TextureWrap w) void Texture::set_generate_mipmap(bool gm) { + if(gm) + static RequireExtension _ext("GL_SGIS_generate_mipmap"); gen_mipmap = gm; update_parameter(GENERATE_MIPMAP); } -- 2.43.0