diff options
author | moby-uk <moby-uk@svn> | 2009-09-29 19:05:28 +0000 |
---|---|---|
committer | moby-uk <moby-uk@svn> | 2009-09-29 19:05:28 +0000 |
commit | 7486f625711fef09ddb52f74bdeb32872b9066aa (patch) | |
tree | 1d32756b56ac52894a989ff5dc64109fb93b73e6 /guilib | |
parent | 0bc9c4bc8c443302d19e7f305cedc408daf2eede (diff) |
fixed: loading non-POT sized textures on GL-builds where POT sized are required.
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@23253 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Diffstat (limited to 'guilib')
-rw-r--r-- | guilib/Texture.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/guilib/Texture.cpp b/guilib/Texture.cpp index d4e96d642a..787d19b6c6 100644 --- a/guilib/Texture.cpp +++ b/guilib/Texture.cpp @@ -94,7 +94,7 @@ void CBaseTexture::Update(int w, int h, int pitch, unsigned int format, const un Allocate(w, h, 0, format); - if (m_imageHeight != m_nTextureHeight && m_imageWidth != m_nTextureWidth) + if (m_imageHeight != m_nTextureHeight || m_imageWidth != m_nTextureWidth) { // Resize texture to POT if needed const unsigned char *src = pixels; |