SHARE
TWEET

Untitled

a guest Jul 26th, 2012 98 Never
  1. --- a/xbmc/guilib/Texture.cpp
  2. +++ b/xbmc/guilib/Texture.cpp
  3. @@ -91,6 +91,11 @@ void CBaseTexture::Allocate(unsigned int width, unsigned int height, unsigned in
  4.      m_textureWidth = ((m_textureWidth + 3) / 4) * 4;
  5.      m_textureHeight = ((m_textureHeight + 3) / 4) * 4;
  6.    }
  7. +  else
  8. +  {
  9. +    m_textureWidth = ((m_textureWidth + 1) / 2) * 2;
  10. +    m_textureHeight = ((m_textureHeight + 1) / 2) * 2;
  11. +  }
  12.  
  13.    // check for max texture size
  14.    #define CLAMP(x, y) { if (x > y) x = y; }
RAW Paste Data
Top