- Stop calling the PNG Loading routine if not a .png file
This commit is contained in:
wagic.the.homebrew@gmail.com
2009-09-21 03:58:19 +00:00
parent 2bb4377f80
commit ae93341a98
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -749,7 +749,7 @@ JTexture* JRenderer::LoadTexture(const char* filename, int mode, int TextureForm
LoadJPG(textureInfo, filename);
else if(strstr(filename, ".gif")!=NULL || strstr(filename, ".GIF")!=NULL)
LoadGIF(textureInfo,filename);
else
else if(strstr(filename, ".png")!=NULL || strstr(filename, ".PNG")!=NULL)
LoadPNG(textureInfo, filename);
if (textureInfo.mBits == NULL)