aboutsummaryrefslogtreecommitdiff
path: root/guilib/Texture.cpp
diff options
context:
space:
mode:
authorjmarshallnz <jmarshallnz@svn>2009-10-04 19:18:11 +0000
committerjmarshallnz <jmarshallnz@svn>2009-10-04 19:18:11 +0000
commit7ab3c15b2e501c694b66a3cd67fc3f47a5b45f74 (patch)
treecca42369c249fe3b9046656b8b3c57afb1c34c26 /guilib/Texture.cpp
parenteea70eaeb7376659a29306b1cbb1bf889d09f5ea (diff)
changed: No need for the CUtil include to compare extensions.
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@23420 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Diffstat (limited to 'guilib/Texture.cpp')
-rw-r--r--guilib/Texture.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/guilib/Texture.cpp b/guilib/Texture.cpp
index dfd27981fa..2e44e9535b 100644
--- a/guilib/Texture.cpp
+++ b/guilib/Texture.cpp
@@ -25,7 +25,6 @@
#include "utils/log.h"
#include "DllImageLib.h"
#include "DDSImage.h"
-#include "Util.h"
/************************************************************************/
/* */
@@ -136,7 +135,7 @@ void CBaseTexture::ClampToEdge()
bool CBaseTexture::LoadFromFile(const CStdString& texturePath, unsigned int maxWidth, unsigned int maxHeight,
bool autoRotate, unsigned int *originalWidth, unsigned int *originalHeight)
{
- if (CUtil::GetExtension(texturePath).Equals(".dds"))
+ if (texturePath.Right(4).Equals(".dds"))
{ // special case for DDS images
CDDSImage image;
image.ReadFile(texturePath);