]> git.cworth.org Git - apitrace/blobdiff - apigen/glspec.py
More extensions.
[apitrace] / apigen / glspec.py
index 6408acb08166978210be83a4f071306916ef555a..72c24fa94e6a691abf1001bf2bbe2f20e76eb300 100755 (executable)
@@ -229,10 +229,9 @@ class SpecParser(LineParser):
                 elif length.find("COMPSIZE") == -1:
                     arg_type = '%s(%s, "%s")' % (constructor, base_type, length)
                 else:
-                    # XXX: Handle COMPSIZE better
                     length = length.replace("COMPSIZE", "__%s_size" % function_name)
                     length = length.replace("/", ", ")
-                    arg_type = '%s(%s, "%s")' % (constructor, base_type, length)
+                    arg_type = 'Opaque%s(%s, "%s")' % (constructor, base_type, length)
             if inout == 'in':
                 arg_type = 'Const(%s)' % arg_type
         else: