Advertisement
Guest User

Untitled

a guest
Jul 26th, 2012
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  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; }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement