]> git.cworth.org Git - apitrace/blobdiff - specs/scripts/glspec.py
Update khronos headers.
[apitrace] / specs / scripts / glspec.py
index 1511bf3b26568833984529deffc7b7deaf1f57c9..2c3c2865329dba6cda1245688af29470a016297a 100755 (executable)
@@ -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