From 14eb84cbb167cae58377ec463a28c03b4aee15f5 Mon Sep 17 00:00:00 2001 From: Patrick Dawson Date: Mon, 9 Sep 2024 02:54:24 +0200 Subject: [PATCH] Fix build errors --- .../imgui-godot/ImGuiGodot/Internal/RdRendererThreadSafe.cs | 4 ++-- gdext/src/RdRendererThreadSafe.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/addons/imgui-godot/ImGuiGodot/Internal/RdRendererThreadSafe.cs b/addons/imgui-godot/ImGuiGodot/Internal/RdRendererThreadSafe.cs index a3b67ac..c77a799 100644 --- a/addons/imgui-godot/ImGuiGodot/Internal/RdRendererThreadSafe.cs +++ b/addons/imgui-godot/ImGuiGodot/Internal/RdRendererThreadSafe.cs @@ -134,13 +134,13 @@ public RdRendererThreadSafe() } // if a frame was skipped, free old data - var oldData = Interlocked.Exchange(ref _dataToDraw, newData); + var oldData = System.Threading.Interlocked.Exchange(ref _dataToDraw, newData); oldData?.Dispose(); } private SharedList TakeSharedData() { - var rv = Interlocked.Exchange(ref _dataToDraw, null); + var rv = System.Threading.Interlocked.Exchange(ref _dataToDraw, null); return rv ?? []; } diff --git a/gdext/src/RdRendererThreadSafe.cpp b/gdext/src/RdRendererThreadSafe.cpp index 5ac6179..7abcb83 100644 --- a/gdext/src/RdRendererThreadSafe.cpp +++ b/gdext/src/RdRendererThreadSafe.cpp @@ -3,6 +3,7 @@ #include #include #include +#include #include using namespace godot; @@ -69,8 +70,7 @@ RdRendererThreadSafe::RdRendererThreadSafe() : impl(std::make_unique()) if (DisplayServer::get_singleton()->window_get_vsync_mode() == DisplayServer::VSYNC_DISABLED) { - UtilityFunctions::push_warning( - "[imgui-godot] Multi-threaded renderer with vsync disabled will probably crash"); + UtilityFunctions::push_warning("[imgui-godot] Multi-threaded renderer with vsync disabled will probably crash"); } }