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
kCGLOGLPVersion_3_2_Core = 0x3200
kCGLPFAAccelerated = 73
kCGLPFAColorSize = 56
kCGLPFADepthSize = 12
kCGLPFAColorSize = 8
kCGLPFAAllowOfflineRenderers = 96
attrs = (ctypes.c_int * 9)(