Explorar o código

Fix black screen when going to fullscreen on Mac OS X

rdb %!s(int64=10) %!d(string=hai) anos
pai
achega
3f520cad01
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      panda/src/cocoadisplay/cocoaGraphicsWindow.mm

+ 1 - 1
panda/src/cocoadisplay/cocoaGraphicsWindow.mm

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