mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-26 13:50:53 +00:00
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:
parent
904eb552fa
commit
e70af9bb9e
2 changed files with 6 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue