aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarlson2k <k2k@narod.ru>2013-08-04 04:43:27 +0400
committerKarlson2k <k2k@narod.ru>2013-08-04 04:43:27 +0400
commitd4d5a6f3611d204b9cd5dcf1ea291aa72808f102 (patch)
treefc41755a26a46c4fe0c54ce78a47eb226057f09b
parent6f4d7d9d2274a5fbcf62e98797692d5285d304d2 (diff)
CGUIFontTTFGL::ReallocTexture log warning when allocated texture smaller than requested
-rw-r--r--xbmc/guilib/GUIFontTTFGL.cpp2
1 files changed, 2 insertions, 0 deletions
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)