mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-10 22:51:57 +00:00
raz0 pointed out that gl was crashing on his computer.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@681 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
dab7864373
commit
2976ca471e
1 changed files with 7 additions and 1 deletions
|
@ -137,6 +137,8 @@ qboolean GLX_InitLibrary(char *driver)
|
||||||
gllibrary = NULL;
|
gllibrary = NULL;
|
||||||
if (!gllibrary)
|
if (!gllibrary)
|
||||||
gllibrary = dlopen("libGL.so", RTLD_LOCAL | RTLD_LAZY);
|
gllibrary = dlopen("libGL.so", RTLD_LOCAL | RTLD_LAZY);
|
||||||
|
if (!gllibrary) //I hate this.
|
||||||
|
gllibrary = dlopen("libGL.so.1", RTLD_LOCAL | RTLD_LAZY);
|
||||||
if (!gllibrary)
|
if (!gllibrary)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
@ -622,7 +624,11 @@ qboolean GLVID_Init (rendererstate_t *info, unsigned char *palette)
|
||||||
|
|
||||||
S_Startup();
|
S_Startup();
|
||||||
|
|
||||||
GLX_InitLibrary(info->glrenderer);
|
if (!GLX_InitLibrary(info->glrenderer))
|
||||||
|
{
|
||||||
|
Con_Printf("Couldn't intialise GLX\nEither your drivers are not installed or you need to specify the library name with the gl_driver cvar\n");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
vid.maxwarpwidth = WARP_WIDTH;
|
vid.maxwarpwidth = WARP_WIDTH;
|
||||||
vid.maxwarpheight = WARP_HEIGHT;
|
vid.maxwarpheight = WARP_HEIGHT;
|
||||||
|
|
Loading…
Reference in a new issue