[upstream_utils] Update imgui and implot (#8762)

Not updating GLFW yet due to a likely future move to SDL.
This commit is contained in:
Peter Johnson
2026-04-12 12:19:32 -07:00
committed by GitHub
parent d76486d885
commit 476b9641c1
47 changed files with 27710 additions and 12792 deletions

View File

@@ -57,8 +57,8 @@ def copy_upstream_src(wpilib_root: Path):
def main():
name = "imgui"
url = "https://github.com/ocornut/imgui.git"
# docking on 2023-09-18
tag = "64b1e448d20c9be9275af731c34b4c7bf14a8e95"
# docking on 2026-04-11
tag = "d55608a5bb8c8a6890957b9e216f969c9407265b"
imgui = Lib(name, url, tag, copy_upstream_src)
imgui.main()

View File

@@ -9,10 +9,10 @@ Signed-off-by: Jade Turner <spacey-sooty@proton.me>
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/imconfig.h b/imconfig.h
index b56ba49467ebb388e038f0a23aed46044085bdff..291ce1995412f10e784beaf3f4c51e02d90b9813 100644
index 0d843be26dcaa78eb59365dd2577099e095ab36c..41bd164ea606d144d395f17f19f2180e56b80c05 100644
--- a/imconfig.h
+++ b/imconfig.h
@@ -98,7 +98,7 @@
@@ -112,7 +112,7 @@
operator MyVec4() const { return MyVec4(x,y,z,w); }
*/
//---- ...Or use Dear ImGui's own very basic math operators.

View File

@@ -28,8 +28,7 @@ def copy_upstream_src(wpilib_root: Path):
def main():
name = "implot"
url = "https://github.com/epezent/implot.git"
# master on 2023-08-19
tag = "18c72431f8265e2b0b5378a3a73d8a883b2175ff"
tag = "v1.0"
implot = Lib(name, url, tag, copy_upstream_src)
implot.main()

View File

@@ -1,42 +1,44 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: PJ Reiniger <pj.reiniger@gmail.com>
Date: Wed, 10 Jul 2024 03:16:19 -0400
From: Peter Johnson <johnson.peter@gmail.com>
Date: Sat, 11 Apr 2026 22:54:19 -0700
Subject: [PATCH] Supress compiler warnings
---
implot_internal.h | 8 ++++++++
implot_internal.h | 9 +++++++++
implot_items.cpp | 4 ++++
2 files changed, 12 insertions(+)
2 files changed, 13 insertions(+)
diff --git a/implot_internal.h b/implot_internal.h
index fb01204819348fde5477359e3b7b87055b944811..1333085423a88b9fefc8192d4b2e04db1cc1b10c 100644
index 9f6dfb23ff38c354928dc5be51e1884d6df4c9c7..5ce48ed8338bba24ad87af6870a23cdd1aa75a9b 100644
--- a/implot_internal.h
+++ b/implot_internal.h
@@ -38,6 +38,10 @@
#error Must include implot.h before implot_internal.h
@@ -37,6 +37,11 @@
#endif
#ifndef IMGUI_DISABLE
+#ifdef __GNUC__
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wformat-nonliteral"
+#endif
+
#include <time.h>
#include "imgui_internal.h"
// Support for pre-1.84 versions. ImPool's GetSize() -> GetBufSize()
#if (IMGUI_VERSION_NUM < 18303)
@@ -1665,3 +1669,7 @@ void Locator_Log10(ImPlotTicker& ticker, const ImPlotRange& range, float pixels,
void Locator_SymLog(ImPlotTicker& ticker, const ImPlotRange& range, float pixels, bool vertical, ImPlotFormatter formatter, void* formatter_data);
@@ -1710,4 +1715,8 @@ IMPLOT_API void Locator_SymLog(ImPlotTicker& ticker, const ImPlotRange& range, f
} // namespace ImPlot
+
+#ifdef __GNUC__
+#pragma GCC diagnostic pop
+#endif
+
#endif // #ifndef IMGUI_DISABLE
diff --git a/implot_items.cpp b/implot_items.cpp
index c57ca9d4d669501bd2d9a54ee39ac6cfb707e29a..a56f5b89912460008c4a108e26c1e764d21678f2 100644
index adea97ef7604cf092b00793989a21c147ff999e2..717386dc394b904a08918113efc7949e5dfe9dac 100644
--- a/implot_items.cpp
+++ b/implot_items.cpp
@@ -26,6 +26,10 @@
#include "implot.h"
@@ -30,6 +30,10 @@
#ifndef IMGUI_DISABLE
#include "implot_internal.h"
+#ifdef __GNUC__