From 45a7aca99301d2b66f28e255de46365f1b368771 Mon Sep 17 00:00:00 2001 From: jp9000 Date: Sat, 27 Apr 2019 15:18:04 -0700 Subject: [PATCH] Add passive aggressive error message if no device --- libobs-metal/metal-device.mm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libobs-metal/metal-device.mm b/libobs-metal/metal-device.mm index 03e953fe5..d32746362 100644 --- a/libobs-metal/metal-device.mm +++ b/libobs-metal/metal-device.mm @@ -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);