don't use glXGetProcAddressARB to look up the glX functions. hopefully fixes

the nvidea segfault
This commit is contained in:
Bill Currie 2002-11-10 23:31:19 +00:00
parent 8ebef28b7a
commit aa5ad0f0f9

View file

@ -90,6 +90,8 @@ Bool (* qfglXMakeCurrent) (Display *dpy, GLXDrawable drawable, GLXContext ctx);
// ============================================================================
static int use_gl_procaddress;
#if defined(HAVE_DLOPEN)
void * (* glGetProcAddress) (const char *symbol) = NULL;
@ -99,7 +101,7 @@ QFGL_GetProcAddress (void *handle, const char *name)
{
void *glfunc = NULL;
if (glGetProcAddress)
if (use_gl_procaddress && glGetProcAddress)
glfunc = glGetProcAddress (name);
if (!glfunc)
glfunc = dlsym (handle, name);
@ -191,6 +193,8 @@ VID_Init (unsigned char *palette)
true);
qfglXMakeCurrent = QFGL_ProcAddress (libgl_handle, "glXMakeCurrent", true);
use_gl_procaddress = 1;
Cmd_AddCommand ("vid_center", VID_Center_f, "Center the view port on the "
"quake window in a virtual desktop.\n");