Fix CGL kCGLPFAColorSize constant (56 → 8) and remove unused kCGLPFADepthSize

kCGLPFAColorSize was set to 56 (which is kCGLPFASamples), causing CGL
to interpret the attribute pair as a request for 32x multisampling
instead of 32-bit color. CGL silently ignored it, masking the bug.
This commit is contained in:
Hunter Senft-Grupp 2026-02-17 22:19:08 -05:00
parent 3846bff06f
commit 916bc19021

View File

@ -288,8 +288,7 @@ def _init_cgl():
kCGLPFAOpenGLProfile = 99 kCGLPFAOpenGLProfile = 99
kCGLOGLPVersion_3_2_Core = 0x3200 kCGLOGLPVersion_3_2_Core = 0x3200
kCGLPFAAccelerated = 73 kCGLPFAAccelerated = 73
kCGLPFAColorSize = 56 kCGLPFAColorSize = 8
kCGLPFADepthSize = 12
kCGLPFAAllowOfflineRenderers = 96 kCGLPFAAllowOfflineRenderers = 96
attrs = (ctypes.c_int * 9)( attrs = (ctypes.c_int * 9)(