]> git.tdb.fi Git - libs/gl.git/commitdiff
Use correct form of GET_PROC_ADDRESS for unpromoted functions
authorMikko Rasa <tdb@tdb.fi>
Wed, 26 Oct 2016 18:48:49 +0000 (21:48 +0300)
committerMikko Rasa <tdb@tdb.fi>
Wed, 26 Oct 2016 18:54:57 +0000 (21:54 +0300)
None compares as less than any list.

scripts/extgen.py

index 7083e13a1e6dcfc8ad00a3179bcd13cbe7f12bdb..0ea8b8ee3c7ac8355b3d85ba1db6a62890bb976e 100755 (executable)
@@ -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")