From b18673320f48988f31fda9c6b4fe7b44f7777f94 Mon Sep 17 00:00:00 2001 From: Jose Fonseca Date: Sun, 1 May 2016 22:01:27 +0100 Subject: cgltrace: Don't treat undocumented CGLChoosePixelFormat attrib as integer. It's a boolean, and failing to recognizing causes missing the list terminator. --- specs/cglapi.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'specs') 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( -- cgit v1.2.3