]> git.tdb.fi Git - libs/gl.git/commitdiff
Return false from is_supported for disabled extensions
authorMikko Rasa <tdb@tdb.fi>
Sun, 8 Jan 2017 13:59:37 +0000 (15:59 +0200)
committerMikko Rasa <tdb@tdb.fi>
Sun, 8 Jan 2017 13:59:37 +0000 (15:59 +0200)
source/extension.cpp

index 2dc298c1f5105f13892d2d499567fd0112424a1e..692037c3b174583bf7f35ea2c1afae98413140e9 100644 (file)
@@ -79,6 +79,9 @@ Require::Require(const Extension &ext)
 
 bool is_supported(const string &ext)
 {
+       if(is_disabled(ext))
+               return false;
+
        static set<string> extensions;
        static bool init_done = false;