Commit 16f417e8 authored by w4t's avatar w4t

fix memory leak in ofxImGui::Guiw

parent 7172b7d9
Pipeline #54 canceled with stages
......@@ -36,13 +36,16 @@ namespace ofxImGui
io.DisplaySize = ImVec2((float)ofGetWidth(), (float)ofGetHeight());
io.MouseDrawCursor = false;
if (engine)
delete engine;
#if defined(TARGET_OPENGLES)
engine = new EngineOpenGLES();
#elif defined (OF_TARGET_API_VULKAN)
engine = new EngineVk();
#elif FORCE_APPGLUT
engine = new EngineGLUT();
#else
#else
engine = new EngineGLFW();
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment