macos: various GL context cleanups
- Set opaque GL context when inside an opaque window
- Only request 24-bit color (alpha channel is separate)
- Use
CGLEnable()
andCGLSetParameter()
instead of NSOpenGLContext when possible
CGLEnable()
and CGLSetParameter()
instead of NSOpenGLContext when possible