From f5df8659d15b714f64c2617aafa8bad432ca0f33 Mon Sep 17 00:00:00 2001 From: GagaLP Date: Thu, 23 Jul 2026 18:30:20 +0200 Subject: [PATCH] Make cgf_diagnostics::teardown() a no-op instead of resetting the instance --- include/cgf_diagnostics.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/cgf_diagnostics.h b/include/cgf_diagnostics.h index fb9b59f16..2dff550ce 100644 --- a/include/cgf_diagnostics.h +++ b/include/cgf_diagnostics.h @@ -18,7 +18,11 @@ class cgf_diagnostics { static bool is_available() { return m_instance != nullptr; } - static void teardown() { m_instance.reset(); } + static void teardown() { + // Empty teardown function. + // If we ever need to do something specific for teardown in cfg_diagnostics + // we can use this function to do so. + } static cgf_diagnostics& get_instance() { assert(m_instance != nullptr);