From 0fb3346a7aaadf72f76199e8ca239d5da08bc1f1 Mon Sep 17 00:00:00 2001 From: sergeyn Date: Tue, 24 Aug 2021 17:08:00 +0200 Subject: [PATCH] custom context management (same way as in ImGui) (#278) --- implot.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/implot.cpp b/implot.cpp index bc1022e..5f6b9ce 100644 --- a/implot.cpp +++ b/implot.cpp @@ -85,8 +85,9 @@ You can read releases logs https://github.com/epezent/implot/releases for more d #endif // Global plot context +#ifndef GImPlot ImPlotContext* GImPlot = NULL; - +#endif //----------------------------------------------------------------------------- // Struct Implementations //-----------------------------------------------------------------------------