]> git.cworth.org Git - apitrace/blobdiff - specs/stdapi.py
Proper AttribArray / attrib_list support for applicable GLX functions.
[apitrace] / specs / stdapi.py
index 795f0cfa2776f7e7f24c7cf0803f85cad2e8f8b8..5d5d57004a148d66a0e96885ed16f0dd266a71b6 100644 (file)
@@ -272,8 +272,11 @@ class Array(Type):
 
 class AttribArray(Type):
 
-    def __init__(self, keyType, valueTypes):
-        Type.__init__(self, (Pointer(Const(Int))).expr)
+    def __init__(self, keyType, valueTypes, isConst = True):
+        if isConst:
+            Type.__init__(self, (Pointer(Const(Int))).expr)
+        else:
+            Type.__init__(self, (Pointer(Int)).expr)
         self.type = (Pointer(Const(Int))) # for function prototypes and such
         self.keyType = keyType
         self.valueTypes = valueTypes