Make shared object errors more debuggable.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4114 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2012-10-08 01:30:41 +00:00
parent 904eb552fa
commit e70af9bb9e
2 changed files with 6 additions and 2 deletions

View File

@ -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;
}

View File

@ -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)
{