aboutsummaryrefslogtreecommitdiff
path: root/guilib
diff options
context:
space:
mode:
authormoby-uk <moby-uk@svn>2009-09-29 19:05:28 +0000
committermoby-uk <moby-uk@svn>2009-09-29 19:05:28 +0000
commit7486f625711fef09ddb52f74bdeb32872b9066aa (patch)
tree1d32756b56ac52894a989ff5dc64109fb93b73e6 /guilib
parent0bc9c4bc8c443302d19e7f305cedc408daf2eede (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.cpp2
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;