Fullscreen seems not to work on OSX 10.10
After #define FULLSCREEN 1 on my mac it crashes hard with the stuff below.
Any idea how to make fullscreen work? thanks! :)
2014-12-20 20:49:41.141 craft[32759:717822] An uncaught exception was raised
2014-12-20 20:49:41.142 craft[32759:717822] Error (1000) creating CGSWindow
2014-12-20 20:49:41.142 craft[32759:717822] (
0 CoreFoundation 0x00007fff917c766c __exceptionPreprocess + 172
1 libobjc.A.dylib 0x00007fff8b60176e objc_exception_throw + 43
2 CoreFoundation 0x00007fff917c751d +[NSException raise:format:] + 205
3 AppKit 0x00007fff943ffa06 _NXCreateWindowWithStyleMask + 457
4 AppKit 0x00007fff943ff7a2 _NSCreateWindow + 187
5 AppKit 0x00007fff942d7651 -[NSWindow _commonAwake] + 1365
6 AppKit 0x00007fff941e56ea -[NSWindow _commonInitFrame:styleMask:backing:defer:] + 864
7 AppKit 0x00007fff941e4d26 -[NSWindow _initContent:styleMask:backing:defer:contentView:] + 1477
8 AppKit 0x00007fff941e4756 -[NSWindow initWithContentRect:styleMask:backing:defer:] + 45
9 craft 0x000000010d8a55e2 _glfwPlatformCreateWindow + 1506
10 craft 0x000000010d8a1479 glfwCreateWindow + 649
11 craft 0x000000010d73d8e6 main + 150
12 libdyld.dylib 0x00007fff906935c9 start + 1
)
2014-12-20 20:49:41.143 craft[32759:717822] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Error (1000) creating CGSWindow'
*** First throw call stack:
(
0 CoreFoundation 0x00007fff917c766c __exceptionPreprocess + 172
1 libobjc.A.dylib 0x00007fff8b60176e objc_exception_throw + 43
2 CoreFoundation 0x00007fff917c751d +[NSException raise:format:] + 205
3 AppKit 0x00007fff943ffa06 _NXCreateWindowWithStyleMask + 457
4 AppKit 0x00007fff943ff7a2 _NSCreateWindow + 187
5 AppKit 0x00007fff942d7651 -[NSWindow _commonAwake] + 1365
6 AppKit 0x00007fff941e56ea -[NSWindow _commonInitFrame:styleMask:backing:defer:] + 864
7 AppKit 0x00007fff941e4d26 -[NSWindow _initContent:styleMask:backing:defer:contentView:] + 1477
8 AppKit 0x00007fff941e4756 -[NSWindow initWithContentRect:styleMask:backing:defer:] + 45
9 craft 0x000000010d8a55e2 _glfwPlatformCreateWindow + 1506
10 craft 0x000000010d8a1479 glfwCreateWindow + 649
11 craft 0x000000010d73d8e6 main + 150
12 libdyld.dylib 0x00007fff906935c9 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
[1] 32759 abort ./craft
I suspect some SDL stuff being the cause...
The project uses GLEW and GLFW rather than SDL, so it shouldn't be anything related to that. I'll try it on my 10.9 box and see if I can replicate the issue.
I'd guess GLFW needs to be updated to the latest version, but I haven't tried yet.
I haven't seen this particular crash, but also had trouble with fullscreen on macOS, tracked down to the retina display resolution. This particular issue may or may not be fixed by https://github.com/fogleman/Craft/pull/178 (which also updates glfw), or at least it works for me on 10.12.