imgui: make sure our copy of imgui doesn't clash with others in the same process
[mesa.git] / src / imgui / imconfig.h
index 825505bf070993f1e92c8ee1045860b39a821098..877eb81923790e2e16611a3252eaa43bb8381347 100644 (file)
 
 #pragma once
 
+// Have each embedded of ImGui define this symbol :
+struct ImGuiContext;
+extern thread_local ImGuiContext* __MesaImGui;
+#define GImGui __MesaImGui
+
 //---- Define assertion handler. Defaults to calling assert().
 //#define IM_ASSERT(_EXPR)  MyAssert(_EXPR)
 //#define IM_ASSERT(_EXPR)  ((void)(_EXPR))     // Disable asserts