From: Mikko Rasa Date: Sun, 8 Jan 2017 13:59:37 +0000 (+0200) Subject: Return false from is_supported for disabled extensions X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=46086017e46264d06c72a7ca09f7416615f3bc1b;p=libs%2Fgl.git Return false from is_supported for disabled extensions --- diff --git a/source/extension.cpp b/source/extension.cpp index 2dc298c1..692037c3 100644 --- a/source/extension.cpp +++ b/source/extension.cpp @@ -79,6 +79,9 @@ Require::Require(const Extension &ext) bool is_supported(const string &ext) { + if(is_disabled(ext)) + return false; + static set extensions; static bool init_done = false;