From: Mikko Rasa Date: Sat, 27 Dec 2014 00:14:19 +0000 (+0200) Subject: Only require ARB_shadow when enabling texture compare mode X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=commitdiff_plain;h=634bf31f905ece4ad1b4858b530322a0fa7f21d3 Only require ARB_shadow when enabling texture compare mode --- 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); }