mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-28 10:35:43 -05:00
Added coverage for multiple init/shutdown.
This commit is contained in:
parent
8d5b34ffa6
commit
b01a1774c9
1 changed files with 7 additions and 0 deletions
|
@ -16,6 +16,13 @@ int _main_(int _argc, char** _argv)
|
|||
uint32_t debug = BGFX_DEBUG_TEXT;
|
||||
uint32_t reset = BGFX_RESET_NONE;
|
||||
|
||||
// It's possible to call init/shutdown sequence multiple times inside
|
||||
// the same application if it is necessary. State created between one
|
||||
// init and shutdown doesn't carry over to another.
|
||||
bgfx::init();
|
||||
bgfx::shutdown();
|
||||
|
||||
// Now init for real example.
|
||||
bgfx::init();
|
||||
bgfx::reset(width, height);
|
||||
|
||||
|
|
Loading…
Reference in a new issue