]> git.tdb.fi Git - libs/gl.git/blobdiff - scripts/extgen.py
Use correct form of GET_PROC_ADDRESS for unpromoted functions
[libs/gl.git] / 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")