Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jul 26th, 2012  |  syntax: None  |  size: 0.49 KB  |  views: 98  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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; }
clone this paste RAW Paste Data