From 82bbdf6e44cbb24f1e4a45837ba882d6a132d13f Mon Sep 17 00:00:00 2001 From: Spoike Date: Mon, 13 May 2013 14:37:47 +0000 Subject: [PATCH] various linux tweaks that make it run a little better in debian. Added the handy stack dump code for debug client builds too. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4358 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/image.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/engine/client/image.c b/engine/client/image.c index 53e85e188..9dd69509e 100644 --- a/engine/client/image.c +++ b/engine/client/image.c @@ -740,6 +740,8 @@ qboolean LibPNG_Init(void) if (!LIBPNG_LOADED()) libpng_handle = Sys_LoadLibrary("libpng", pngfuncs); + if (!LIBPNG_LOADED()) + libpng_handle = Sys_LoadLibrary("libpng12", pngfuncs); #endif return LIBPNG_LOADED(); } @@ -1055,6 +1057,12 @@ qboolean LibJPEG_Init(void) if (!LIBJPEG_LOADED()) libjpeg_handle = Sys_LoadLibrary("libjpeg", jpegfuncs); +#ifndef _WIN32 + if (!LIBJPEG_LOADED()) + libjpeg_handle = Sys_LoadLibrary("libjpeg"ARCH_DL_POSTFIX".8", jpegfuncs); + if (!LIBJPEG_LOADED()) + libjpeg_handle = Sys_LoadLibrary("libjpeg"ARCH_DL_POSTFIX".62", jpegfuncs); +#endif #endif return LIBJPEG_LOADED();