Wrap libpng and libjpeg in AVAIL_xxxLIB defines

git-svn-id: https://svn.code.sf.net/p/fteqw/code/branches/wip@3652 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Lance 2010-11-11 23:54:36 +00:00
parent 5f71f6d355
commit 129ba40ef3

View file

@ -494,8 +494,12 @@ void R_SetRenderer_f (void);
void Renderer_Init(void)
{
LibJPEG_Init();
LibPNG_Init();
#ifdef AVAIL_JPEGLIB
LibJPEG_Init();
#endif
#ifdef AVAIL_PNGLIB
LibPNG_Init();
#endif
currentrendererstate.renderer = NULL;
qrenderer = QR_NONE;