mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 12:52:46 +00:00
this is C, not C++ ;)
This commit is contained in:
parent
5e1de4c8a7
commit
3dbc913903
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue