mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-04-18 02:52:47 +03:00
feat(gx): add more readable error for initializing an unknown device
This commit is contained in:
parent
c6e1751bbe
commit
520b6254b3
@ -39,11 +39,14 @@ CGxDevice* GxDevCreate(EGxApi api, int32_t (*windowProc)(void* window, uint32_t
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
default:
|
default:
|
||||||
// Error
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
STORM_ASSERT(device != nullptr);
|
if (device == nullptr) {
|
||||||
|
STORM_PANIC("GxDevCreate: failed to create graphics device %d", api);
|
||||||
|
}
|
||||||
|
|
||||||
|
// STORM_ASSERT(device != nullptr);
|
||||||
|
|
||||||
g_theGxDevicePtr = device;
|
g_theGxDevicePtr = device;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user