Fixed a small bug in ogfx::TTFRenderer that caused errors when more than
one instance of TTFRenderer was present
This commit is contained in:
parent
5878d69b5e
commit
2416d2bc15
2 changed files with 3 additions and 3 deletions
|
|
@ -1 +1 @@
|
||||||
1938
|
1939
|
||||||
|
|
|
||||||
|
|
@ -45,7 +45,7 @@ namespace ogfx
|
||||||
|
|
||||||
private:
|
private:
|
||||||
ostd::ConsoleOutputHandler m_out;
|
ostd::ConsoleOutputHandler m_out;
|
||||||
inline static bool m_initialized { false };
|
bool m_initialized { false };
|
||||||
bool m_fontOpen { false };
|
bool m_fontOpen { false };
|
||||||
TTF_Font* m_font { nullptr };
|
TTF_Font* m_font { nullptr };
|
||||||
SDL_Renderer* m_renderer { nullptr };
|
SDL_Renderer* m_renderer { nullptr };
|
||||||
|
|
@ -54,4 +54,4 @@ namespace ogfx
|
||||||
|
|
||||||
inline static constexpr int32_t DefaultFontSize { 16 };
|
inline static constexpr int32_t DefaultFontSize { 16 };
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue