mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-29 23:22:01 +00:00
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)
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue