From e70af9bb9e3a24457136006f2f5cc12924942233 Mon Sep 17 00:00:00 2001 From: Spoike Date: Mon, 8 Oct 2012 01:30:41 +0000 Subject: [PATCH] Make shared object errors more debuggable. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4114 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/sys_linux.c | 6 +++++- engine/gl/gl_heightmap.c | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/engine/client/sys_linux.c b/engine/client/sys_linux.c index 6e04e34c6..0cc47fedc 100644 --- a/engine/client/sys_linux.c +++ b/engine/client/sys_linux.c @@ -537,10 +537,13 @@ dllhandle_t *Sys_LoadLibrary(const char *name, dllfunction_t *funcs) lib = NULL; if (!lib) lib = dlopen (name, RTLD_LAZY); - if (!lib) + if (!lib && strcmp(COM_FileExtension(name), "so")) lib = dlopen (va("%s.so", name), RTLD_LAZY); if (!lib) + { + Con_DPrintf("module \"%s\" faield - %s\n", name, dlerror()); return NULL; + } if (funcs) { @@ -552,6 +555,7 @@ dllhandle_t *Sys_LoadLibrary(const char *name, dllfunction_t *funcs) } if (funcs[i].name) { + Con_DPrintf("Unable to find symbol \"%s\" in \"%s\"\n", funcs[i].name, name); Sys_CloseLibrary((dllhandle_t*)lib); lib = NULL; } diff --git a/engine/gl/gl_heightmap.c b/engine/gl/gl_heightmap.c index f882d6d3b..8b61a751b 100644 --- a/engine/gl/gl_heightmap.c +++ b/engine/gl/gl_heightmap.c @@ -1216,7 +1216,7 @@ void Terr_RebuildMesh(hmsection_t *s, int x, int y) } #ifdef GLQUAKE - if (qrenderer == QR_OPENGL) + if (qrenderer == QR_OPENGL && qglGenBuffersARB) { if (s->vbo.coord.gl.vbo) {