From 00438b27faaee3d78fef29bbdd3fe7e55270d1af Mon Sep 17 00:00:00 2001 From: Mark Olsen Date: Sun, 28 May 2006 23:17:30 +0000 Subject: [PATCH] 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 --- engine/gl/gl_draw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/gl/gl_draw.c b/engine/gl/gl_draw.c index 12138b883..5f56ffbf6 100644 --- a/engine/gl/gl_draw.c +++ b/engine/gl/gl_draw.c @@ -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