0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-19 20:32:15 +02:00

Add passive aggressive error message if no device

This commit is contained in:
jp9000 2019-04-27 15:18:04 -07:00
parent 30c4fe4b83
commit 45a7aca993

View File

@ -21,6 +21,12 @@ void gs_device::InitDevice(uint32_t deviceIdx)
}
}
if (device == nil)
throw "Well I guess there's no device, try using OpenGL "
"rather than this awful apple API that they made "
"with the sole purpose of making developer's lives "
"difficult.";
blog(LOG_INFO, "Loading up Metal on adapter %s (%" PRIu32 ")",
device.name.UTF8String, deviceIdx);