diff options
author | LDA <lda@ldasuku.net> | 2023-06-23 01:54:39 -0700 |
---|---|---|
committer | LDA <lda@ldasuku.net> | 2023-06-23 01:57:16 -0700 |
commit | fa5042902cf461abe541c8be472599782102cf1c (patch) | |
tree | c1d8fa36122d1ce19f49a31b04d03a12eac5f636 /source/rendering/StarFontTextureGroup.cpp | |
parent | 176c79bada5f175202a1f67828a9d4bfc208895c (diff) |
👋 only print opengl errors if errors actually occurred. also fixed building on gcc
Diffstat (limited to 'source/rendering/StarFontTextureGroup.cpp')
-rw-r--r-- | source/rendering/StarFontTextureGroup.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/rendering/StarFontTextureGroup.cpp b/source/rendering/StarFontTextureGroup.cpp index fe15381..76defee 100644 --- a/source/rendering/StarFontTextureGroup.cpp +++ b/source/rendering/StarFontTextureGroup.cpp @@ -28,9 +28,9 @@ String const& FontTextureGroup::activeFont() { return m_fontName; } -void FontTextureGroup::addFont(FontPtr const& font, String const& name, bool default) { +void FontTextureGroup::addFont(FontPtr const& font, String const& name, bool isDefault) { m_fonts[name] = font; - if (default) + if (isDefault) m_defaultFont = m_font = font; } |