1
0
Fork 0
forked from fte/fteqw

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) if (!mem)
mem = ReadTargaFile((qbyte *)data, com_filesize, &pic->pic.width, &height, 0); mem = ReadTargaFile((qbyte *)data, com_filesize, &pic->pic.width, &height, 0);
#ifdef AVAIL_PNGLIB #ifdef AVAIL_PNGLIB
if (!mem); if (!mem)
mem = ReadPNGFile((qbyte *)data, com_filesize, &pic->pic.width, &height, alternatename); mem = ReadPNGFile((qbyte *)data, com_filesize, &pic->pic.width, &height, alternatename);
#endif #endif
#ifdef AVAIL_JPEGLIB #ifdef AVAIL_JPEGLIB