From d4d5a6f3611d204b9cd5dcf1ea291aa72808f102 Mon Sep 17 00:00:00 2001 From: Karlson2k Date: Sun, 4 Aug 2013 04:43:27 +0400 Subject: CGUIFontTTFGL::ReallocTexture log warning when allocated texture smaller than requested --- xbmc/guilib/GUIFontTTFGL.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xbmc/guilib/GUIFontTTFGL.cpp b/xbmc/guilib/GUIFontTTFGL.cpp index 2dfb286e15..71f02f8b65 100644 --- a/xbmc/guilib/GUIFontTTFGL.cpp +++ b/xbmc/guilib/GUIFontTTFGL.cpp @@ -204,6 +204,8 @@ CBaseTexture* CGUIFontTTFGL::ReallocTexture(unsigned int& newHeight) } m_textureHeight = newTexture->GetHeight(); m_textureWidth = newTexture->GetWidth(); + if (m_textureHeight < newHeight) + CLog::Log(LOGWARNING, "%s: allocated new texture with height of %d, requested %d", __FUNCTION__, m_textureHeight, newHeight); memset(newTexture->GetPixels(), 0, m_textureHeight * newTexture->GetPitch()); if (m_texture) -- cgit v1.2.3