diff options
author | Akemi <der.richter@gmx.de> | 2018-03-13 21:14:27 +0100 |
---|---|---|
committer | Kevin Mitchell <kevmitch@gmail.com> | 2018-03-14 23:59:03 -0700 |
commit | 749f5c8d65056763398aad5e9eb786fe52b8fede (patch) | |
tree | a571ec46be6b39726b252c7ef7f448c203e4cbd2 /video/out/gpu | |
parent | 12b90e744dd220a3386a8977138fba28708c8d21 (diff) | |
download | mpv-749f5c8d65056763398aad5e9eb786fe52b8fede.tar.bz2 mpv-749f5c8d65056763398aad5e9eb786fe52b8fede.tar.xz |
cocoa-cb: fix crash with forced iGPU on some multi GPU systems
there were actually a few small problems. the fatalError() function
wasn't supposed to be called there and caused an "Illegal instruction".
this was replaced by a print and exit() call. the second problem was
that cocoa returns a kCGLBadPixelFormat instead of a kCGLBadAttribute
error, which broke our check, immediately exited our loop and no working
pixel format was ever created. the third problem was that macOS 10.12
didn't return any errors but also didn't return a pixel format, that
also broke our check. now the code checks for both cases.
Fixes #5631
Diffstat (limited to 'video/out/gpu')
0 files changed, 0 insertions, 0 deletions