mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-24 16:48:18 -05:00
Cleanup.
This commit is contained in:
parent
cbba6eef18
commit
2ec8cb802b
2 changed files with 2 additions and 2 deletions
2
3rdparty/ocornut-imgui/imgui_wm.cpp
vendored
2
3rdparty/ocornut-imgui/imgui_wm.cpp
vendored
|
@ -17,7 +17,7 @@
|
|||
|
||||
#define IMGUI_NEW(type) new (ImGui::MemAlloc(sizeof(type) ) ) type
|
||||
#define IMGUI_DELETE(type, obj) reinterpret_cast<type*>(obj)->~type(), ImGui::MemFree(obj)
|
||||
#define IMGUI_DELETE_NULL(type, obj) do { if (NULL != obj) { IMGUI_DELETE(type, obj); obj = NULL; } } while (0)
|
||||
#define IMGUI_DELETE_NULL(type, obj) for (;;) { if (NULL != obj) { IMGUI_DELETE(type, obj); obj = NULL; } break; }
|
||||
|
||||
namespace ImGuiWM
|
||||
{
|
||||
|
|
|
@ -128,7 +128,7 @@ public:
|
|||
protected:
|
||||
virtual ImGuiWM::PlatformWindow* CreatePlatformWindow(bool _main, ImGuiWM::PlatformWindow* _parent, bool _isDragWindow) BX_OVERRIDE
|
||||
{
|
||||
PlatformWindow* window = new PlatformWindow(_main, _isDragWindow);
|
||||
PlatformWindow* window = new (ImGui::MemAlloc(sizeof(PlatformWindow) ) ) PlatformWindow(_main, _isDragWindow);
|
||||
window->Init(_parent);
|
||||
return static_cast<ImGuiWM::PlatformWindow*>(window);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue