Skip to content
Snippets Groups Projects
Commit 45a7aca9 authored by Jim's avatar Jim
Browse files

Add passive aggressive error message if no device

parent 30c4fe4b
No related merge requests found
......@@ -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);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment