From 129ba40ef3e62d3f40f370be3df6bbed2615251f Mon Sep 17 00:00:00 2001 From: Lance Date: Thu, 11 Nov 2010 23:54:36 +0000 Subject: [PATCH] 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 --- engine/client/renderer.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/engine/client/renderer.c b/engine/client/renderer.c index 382152f5d..681c0b64c 100644 --- a/engine/client/renderer.c +++ b/engine/client/renderer.c @@ -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;