summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/modules/render/drawbgfx.cpp
diff options
context:
space:
mode:
author Brad Hughes <bradhugh@outlook.com>2016-04-05 09:58:52 -0400
committer Brad Hughes <bradhugh@outlook.com>2016-04-05 09:58:52 -0400
commit89b21ff822099a4416b7372ce46f8ac639aeef19 (patch)
treec5471d4a64133242bab73b9e37c6efd5ae87af2e /src/osd/modules/render/drawbgfx.cpp
parent31d425e866d8ac0bed2a819686e3809242f6af0c (diff)
parent06415edd9e0b31b9cb5238a53824f3512cc01a81 (diff)
Merge branch 'master' of https://github.com/mamedev/mame.git
Diffstat (limited to 'src/osd/modules/render/drawbgfx.cpp')
-rw-r--r--src/osd/modules/render/drawbgfx.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/osd/modules/render/drawbgfx.cpp b/src/osd/modules/render/drawbgfx.cpp
index 415e5ef33e4..4798bdbd4b6 100644
--- a/src/osd/modules/render/drawbgfx.cpp
+++ b/src/osd/modules/render/drawbgfx.cpp
@@ -43,6 +43,8 @@
#include "bgfx/slider.h"
#include "bgfx/target.h"
+#include "imgui/imgui.h"
+
//============================================================
// DEBUGGING
//============================================================
@@ -198,6 +200,8 @@ int renderer_bgfx::create()
memset(m_white, 0xff, sizeof(uint32_t) * 16 * 16);
m_texinfo.push_back(rectangle_packer::packable_rectangle(WHITE_HASH, PRIMFLAG_TEXFORMAT(TEXFORMAT_ARGB32), 16, 16, 16, nullptr, m_white));
+ imguiCreate();
+
return 0;
}
@@ -261,6 +265,8 @@ renderer_bgfx::~renderer_bgfx()
void renderer_bgfx::exit()
{
+ imguiDestroy();
+
bgfx::shutdown();
s_window_set = false;
}