From 2416d2bc15a8800a5884e3ed69b783763b90f936 Mon Sep 17 00:00:00 2001 From: Sylar Date: Mon, 5 Jan 2026 20:45:50 +0100 Subject: [PATCH] Fixed a small bug in ogfx::TTFRenderer that caused errors when more than one instance of TTFRenderer was present --- other/build.nr | 2 +- src/ogfx/FontUtils.hpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/other/build.nr b/other/build.nr index ccae752..4fa0673 100644 --- a/other/build.nr +++ b/other/build.nr @@ -1 +1 @@ -1938 +1939 diff --git a/src/ogfx/FontUtils.hpp b/src/ogfx/FontUtils.hpp index ff191c0..b295430 100644 --- a/src/ogfx/FontUtils.hpp +++ b/src/ogfx/FontUtils.hpp @@ -45,7 +45,7 @@ namespace ogfx private: ostd::ConsoleOutputHandler m_out; - inline static bool m_initialized { false }; + bool m_initialized { false }; bool m_fontOpen { false }; TTF_Font* m_font { nullptr }; SDL_Renderer* m_renderer { nullptr }; @@ -54,4 +54,4 @@ namespace ogfx inline static constexpr int32_t DefaultFontSize { 16 }; }; -} \ No newline at end of file +}