]> git.tdb.fi Git - libs/gl.git/commitdiff
Only require ARB_shadow when enabling texture compare mode
authorMikko Rasa <tdb@tdb.fi>
Sat, 27 Dec 2014 00:14:19 +0000 (02:14 +0200)
committerMikko Rasa <tdb@tdb.fi>
Sat, 27 Dec 2014 00:14:19 +0000 (02:14 +0200)
source/texture.cpp

index 22bdebdfd2a02eca284a0183c29a2f942b7a1631..6484440e08708075081bab3d9b54c20e2c4e55ec 100644 (file)
@@ -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);
 }