Shutdown

When the application terminates, or unloads raylib, it must first shut down the library with the following call sequence:

mi_raylib_license_release();
mi_raylib_exit();
mi_raylib_detach_process();
mi_raylib_license_release
This function releases all licenses. No licensed operation, such as tessellation or rendering, is possible after this point.
mi_raylib_exit
This function shuts down all of raylib. No raylib function other than mi_raylib_detach_process may be called after this point.
mi_raylib_detach_process
This function detaches the raylib library, but does not actually unload it. Unloading must be done by the caller, using operating system functions. The mi_link_file_remove function may not be used because it only applies to shaders, and because raylib was already shut down.

Note, that mental ray cannot be shut down and re-initialized in the same address space image. Shutdown must always be followed by unloading raylib.

Copyright © 1986, 2015 NVIDIA ARC GmbH. All rights reserved.