]> git.tdb.fi Git - libs/gl.git/blobdiff - source/texture.cpp
Only require ARB_shadow when enabling texture compare mode
[libs/gl.git] / 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);
 }