diff options
Diffstat (limited to 'guilib/GUIFontTTF.cpp')
-rw-r--r-- | guilib/GUIFontTTF.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/guilib/GUIFontTTF.cpp b/guilib/GUIFontTTF.cpp index cc3931e2e7..a88c75b1e3 100644 --- a/guilib/GUIFontTTF.cpp +++ b/guilib/GUIFontTTF.cpp @@ -553,12 +553,19 @@ bool CGUIFontTTFBase::CacheCharacter(wchar_t letter, uint32_t style, Character * if(newTexture == NULL) { FT_Done_Glyph(glyph); + CLog::Log(LOGDEBUG, "GUIFontTTF::CacheCharacter: Failed to allocate new texture of height %u", newHeight); return false; } m_texture = newTexture; } } + if(m_texture == NULL) + { + CLog::Log(LOGDEBUG, "GUIFontTTF::CacheCharacter: no texture to cache character to"); + return false; + } + // set the character in our table ch->letterAndStyle = (style << 16) | letter; ch->offsetX = (short)bitGlyph->left; |