Proper AttribArray / attrib_list support for applicable GLX functions.
The functions are:
glXChooseFBConfig
glXCreateWindow
glXCreatePixmap
glXCreatePbuffer
glXChooseFBConfigSGIX
glXCreateGLXPbufferSGIX
glXBindTexImageEXT
glXBindVideoDeviceNV
diff --git a/specs/stdapi.py b/specs/stdapi.py
index 795f0cf..5d5d570 100644
--- a/specs/stdapi.py
+++ b/specs/stdapi.py
@@ -272,8 +272,11 @@
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