X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftexture.cpp;h=6484440e08708075081bab3d9b54c20e2c4e55ec;hb=b345b919f572b35042d7c50291422f2f917e5a08;hp=22bdebdfd2a02eca284a0183c29a2f942b7a1631;hpb=7d7a8f9e77a526fd5f2920b9005805e56a4b686c;p=libs%2Fgl.git diff --git a/source/texture.cpp b/source/texture.cpp index 22bdebdf..6484440e 100644 --- a/source/texture.cpp +++ b/source/texture.cpp @@ -185,7 +185,8 @@ void Texture::auto_generate_mipmap() void Texture::set_compare_enabled(bool c) { - static Require _req(ARB_shadow); + if(c) + static Require _req(ARB_shadow); compare = c; update_parameter(COMPARE); }