From: Mikko Rasa Date: Wed, 26 Oct 2016 18:48:49 +0000 (+0300) Subject: Use correct form of GET_PROC_ADDRESS for unpromoted functions X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=fe89237f22d6557d8ad7afdbd694c0fb35253c99;p=libs%2Fgl.git Use correct form of GET_PROC_ADDRESS for unpromoted functions None compares as less than any list. --- diff --git a/scripts/extgen.py b/scripts/extgen.py index 7083e13a..0ea8b8ee 100755 --- a/scripts/extgen.py +++ b/scripts/extgen.py @@ -484,7 +484,7 @@ if core_version: for f in funcs: if target_api in f.supported_apis: gpa_suffix = "" - if f.version<=[1, 1]: + if f.version is not None and f.version<=[1, 1]: gpa_suffix = "_1_1" out.write("\t\t%s = reinterpret_cast<%s>(GET_PROC_ADDRESS%s(%s));\n"%(f.name, f.typedef, gpa_suffix, f.name)) out.write("\t\treturn Extension::CORE;\n")