mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-28 10:35:43 -05:00
Fixed issue #353.
This commit is contained in:
parent
11794da949
commit
7904b9d9dd
1 changed files with 5 additions and 0 deletions
|
@ -30,6 +30,7 @@
|
|||
#include <bx/string.h>
|
||||
#include <bx/timer.h>
|
||||
#include "entry/entry.h"
|
||||
#include "imgui/imgui.h"
|
||||
#include "nanovg/nanovg.h"
|
||||
|
||||
BX_PRAGMA_DIAGNOSTIC_PUSH();
|
||||
|
@ -1221,6 +1222,8 @@ int _main_(int /*_argc*/, char** /*_argv*/)
|
|||
, 0
|
||||
);
|
||||
|
||||
imguiCreate();
|
||||
|
||||
NVGcontext* nvg = nvgCreate(1, 0);
|
||||
bgfx::setViewSeq(0, true);
|
||||
|
||||
|
@ -1266,6 +1269,8 @@ int _main_(int /*_argc*/, char** /*_argv*/)
|
|||
|
||||
nvgDelete(nvg);
|
||||
|
||||
imguiDestroy();
|
||||
|
||||
// Shutdown bgfx.
|
||||
bgfx::shutdown();
|
||||
|
||||
|
|
Loading…
Reference in a new issue