Fix PNG usage without preprocessor check.

This commit is contained in:
Brandon Wright 2019-01-04 10:52:11 -06:00
parent 8387fce0e5
commit 51909e0cb4
1 changed files with 4 additions and 0 deletions

View File

@ -93,6 +93,7 @@ bool loadPngImage(const char* name,
bool& outHasAlpha, bool& outHasAlpha,
GLubyte** outData) GLubyte** outData)
{ {
#ifdef HAVE_LIBPNG
png_structp png_ptr; png_structp png_ptr;
png_infop info_ptr; png_infop info_ptr;
unsigned int sig_read = 0; unsigned int sig_read = 0;
@ -211,6 +212,9 @@ bool loadPngImage(const char* name,
/* That's it */ /* That's it */
return true; return true;
#else
return false;
#endif
} }
bool loadTGA(const char* filename, STGA& tgaFile) bool loadTGA(const char* filename, STGA& tgaFile)