X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftexture.cpp;h=185ed7feea582b53194e7a7a61183845b576f065;hb=6dc2da27f0831d4172fcfeba4900616fd6c844b8;hp=18746e5f2ecad265652b12804c2ec927e5d13fcd;hpb=1955e583d7eeeb0a2ff054d90c3694f575d9a08d;p=libs%2Fgl.git diff --git a/source/texture.cpp b/source/texture.cpp index 18746e5f..185ed7fe 100644 --- a/source/texture.cpp +++ b/source/texture.cpp @@ -243,6 +243,11 @@ void Texture::set_wrap_r(TextureWrap w) update_parameter(WRAP_R); } +bool Texture::can_generate_mipmap() +{ + return (EXT_framebuffer_object || SGIS_generate_mipmap); +} + void Texture::set_generate_mipmap(bool gm) { if(gm && !EXT_framebuffer_object)