Support for #define-ing GImGui and IMGUI_SET_CURRENT_CONTEXT_FUNC to enable custom thread-based hackery (#586)

This commit is contained in:
ocornut
2016-11-12 17:08:31 +01:00
parent e0aef0018f
commit 98e1d500d4
2 changed files with 17 additions and 6 deletions

View File

@ -67,7 +67,9 @@ namespace ImGuiStb
// Context
//-----------------------------------------------------------------------------
extern IMGUI_API ImGuiContext* GImGui; // current implicit ImGui context pointer
#ifndef GImGui
extern IMGUI_API ImGuiContext* GImGui; // Current implicit ImGui context pointer
#endif
//-----------------------------------------------------------------------------
// Helpers