提交 45a7aca9 编写于 作者: J jp9000

Add passive aggressive error message if no device

上级 30c4fe4b
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册