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:
parent
01f878498c
commit
00438b27fa
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue