this is C, not C++ ;)

This commit is contained in:
Bill Currie 2001-06-25 15:42:05 +00:00
parent 5e1de4c8a7
commit 3dbc913903

View file

@ -94,9 +94,6 @@ QFGL_ProcAddress (void *handle, const char *name)
static qboolean inited = false; static qboolean inited = false;
void *glfunc = NULL; void *glfunc = NULL;
if (!handle || !name)
return NULL;
#ifdef HAVE_DLOPEN #ifdef HAVE_DLOPEN
static QF_glXGetProcAddressARB glGetProcAddress = NULL; static QF_glXGetProcAddressARB glGetProcAddress = NULL;
#else #else
@ -105,6 +102,9 @@ QFGL_ProcAddress (void *handle, const char *name)
# endif # endif
#endif #endif
if (!handle || !name)
return NULL;
if (!inited) { if (!inited) {
inited = true; inited = true;
#ifdef HAVE_DLOPEN #ifdef HAVE_DLOPEN