Closed StasJ closed 3 years ago
The following code will crash
ospInit(argc, (const char **)argv); exit(0);
Well, ospShutdown() call ensures that the current device is cleaned up appropriately. Due to static object allocation having non-deterministic ordering it should be used to avoid the crash on exit.
ospShutdown()
The following code will crash