diff options
Diffstat (limited to '3rdparty/bgfx/examples/20-nanovg/nanovg.cpp')
-rw-r--r-- | 3rdparty/bgfx/examples/20-nanovg/nanovg.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/3rdparty/bgfx/examples/20-nanovg/nanovg.cpp b/3rdparty/bgfx/examples/20-nanovg/nanovg.cpp index 2b30ef39e7b..4439dd03c64 100644 --- a/3rdparty/bgfx/examples/20-nanovg/nanovg.cpp +++ b/3rdparty/bgfx/examples/20-nanovg/nanovg.cpp @@ -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(); |