Fixed TGA loading when PNG support is enabled.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2301 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Mark Olsen 2006-05-28 23:17:30 +00:00
parent 01f878498c
commit 00438b27fa

View file

@ -401,7 +401,7 @@ mpic_t *GLDraw_SafeCachePic (char *path)
if (!mem)
mem = ReadTargaFile((qbyte *)data, com_filesize, &pic->pic.width, &height, 0);
#ifdef AVAIL_PNGLIB
if (!mem);
if (!mem)
mem = ReadPNGFile((qbyte *)data, com_filesize, &pic->pic.width, &height, alternatename);
#endif
#ifdef AVAIL_JPEGLIB