X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=specs%2Fscripts%2Fglspec.py;h=2c3c2865329dba6cda1245688af29470a016297a;hb=eb15f918b2c8610e064fba8ebbf4b8eef2a7e26e;hp=1511bf3b26568833984529deffc7b7deaf1f57c9;hpb=bcfc81b9014c68fb4e34d5cbbeb0aab1c75aa280;p=apitrace diff --git a/specs/scripts/glspec.py b/specs/scripts/glspec.py index 1511bf3..2c3c286 100755 --- a/specs/scripts/glspec.py +++ b/specs/scripts/glspec.py @@ -238,9 +238,13 @@ class SpecParser(LineParser): length = "%s" % length arg_type = '%s(%s, %s)' % (constructor, base_type, length) else: - length = length.replace("COMPSIZE", "_%s_size" % function_name) - length = length.replace("/", ", ") - arg_type = 'Opaque%s(%s, %s)' % (constructor, base_type, length) + if length == "COMPSIZE(pname)": + length = "_gl_param_size(pname)" + arg_type = '%s(%s, "%s")' % (constructor, base_type, length) + else: + length = length.replace("COMPSIZE", "_%s_size" % function_name) + length = length.replace("/", ", ") + arg_type = 'Opaque%s(%s, "%s")' % (constructor, base_type, length) else: assert False