From fa5042902cf461abe541c8be472599782102cf1c Mon Sep 17 00:00:00 2001 From: LDA Date: Fri, 23 Jun 2023 01:54:39 -0700 Subject: 👋 only print opengl errors if errors actually occurred. also fixed building on gcc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/rendering/StarFontTextureGroup.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/rendering/StarFontTextureGroup.cpp') 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; } -- cgit v1.2.3