Add passive aggressive error message if no device
This commit is contained in:
parent
30c4fe4b83
commit
45a7aca993
1 changed files with 6 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue