open_toontown_panda3d/panda
rdb 619050bb32 cocoadisplay: Fix fullscreen issues on M1 macs
The OpenGL-on-Metal drivers used on these machines don't support CGLSetFullScreenOnDisplay, so we need to disable it on those machines.  This also applies when running a x86_64 app through Rosetta 2, hence the sysctlbyname check.

Furthermore, we need to set the appropriate shielding level, which need not be `NSMainMenuWindowLevel+1`.

Fixes #1316

Co-authored-by: LD <laurent.deru@gmail.com>
2022-12-06 16:59:55 +01:00
..
metalibs Add p3headlessgl render plug-in on Linux using EGL as fallback for GLX 2021-03-23 15:04:20 +01:00
src cocoadisplay: Fix fullscreen issues on M1 macs 2022-12-06 16:59:55 +01:00