mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 08:44:19 -04:00
Fix black screen when going to fullscreen on Mac OS X
This commit is contained in:
parent
d337573504
commit
3f520cad01
@ -159,7 +159,7 @@ begin_frame(FrameMode mode, Thread *current_thread) {
|
||||
// Set the drawable.
|
||||
if (_properties.get_fullscreen()) {
|
||||
// Fullscreen.
|
||||
[cocoagsg->_context setFullScreen];
|
||||
CGLSetFullScreenOnDisplay((CGLContextObj) [cocoagsg->_context CGLContextObj], CGDisplayIDToOpenGLDisplayMask(_display));
|
||||
} else {
|
||||
// Although not recommended, it is technically possible to
|
||||
// use the same context with multiple different-sized windows.
|
||||
|
Loading…
x
Reference in New Issue
Block a user