Fix black screen when going to fullscreen on Mac OS X

This commit is contained in:
rdb 2015-04-01 02:40:59 +02:00
parent d337573504
commit 3f520cad01

View File

@ -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.