diff --git a/examples/20-nanovg/nanovg.cpp b/examples/20-nanovg/nanovg.cpp index 2b30ef39..4439dd03 100644 --- a/examples/20-nanovg/nanovg.cpp +++ b/examples/20-nanovg/nanovg.cpp @@ -30,6 +30,7 @@ #include #include #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();