X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=scripts%2Fextgen.py;h=0ea8b8ee3c7ac8355b3d85ba1db6a62890bb976e;hp=7083e13a1e6dcfc8ad00a3179bcd13cbe7f12bdb;hb=fe89237f22d6557d8ad7afdbd694c0fb35253c99;hpb=daf256f6dd858420233e73bf128abb3ae5801e5b 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")