diff options
author | Jose Fonseca <jfonseca@vmware.com> | 2016-05-01 22:01:27 +0100 |
---|---|---|
committer | Jose Fonseca <jfonseca@vmware.com> | 2016-05-01 22:01:27 +0100 |
commit | b18673320f48988f31fda9c6b4fe7b44f7777f94 (patch) | |
tree | 043b26e89a186473d6ce29963dd738eab691adc2 /specs | |
parent | fc0ce0136231cc8c02eda623b77f710e9a0a95c1 (diff) |
cgltrace: Don't treat undocumented CGLChoosePixelFormat attrib as integer.
It's a boolean, and failing to recognizing causes missing the list
terminator.
Diffstat (limited to 'specs')
-rw-r--r-- | specs/cglapi.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/specs/cglapi.py b/specs/cglapi.py index 69faeeb4..e43c0bb8 100644 --- a/specs/cglapi.py +++ b/specs/cglapi.py @@ -93,10 +93,11 @@ CGLPixelFormatAttributes = [ ("kCGLPFAMPSafe", None), ("kCGLPFAMultiScreen", None), ("kCGLPFAFullScreen", None), + (1262, None), # XXX: Undocumented, but looks like a boolean ] CGLPixelFormatAttribute = Enum("CGLPixelFormatAttribute", - [attrib for attrib, _ in CGLPixelFormatAttributes] + [attrib for attrib, _ in CGLPixelFormatAttributes if isinstance(attrib, str)] ) CGLPixelFormatAttribs = AttribArray( |