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;
|
||||
void *glfunc = NULL;
|
||||
|
||||
if (!handle || !name)
|
||||
return NULL;
|
||||
|
||||
#ifdef HAVE_DLOPEN
|
||||
static QF_glXGetProcAddressARB glGetProcAddress = NULL;
|
||||
#else
|
||||
|
@ -105,6 +102,9 @@ QFGL_ProcAddress (void *handle, const char *name)
|
|||
# endif
|
||||
#endif
|
||||
|
||||
if (!handle || !name)
|
||||
return NULL;
|
||||
|
||||
if (!inited) {
|
||||
inited = true;
|
||||
#ifdef HAVE_DLOPEN
|
||||
|
|
Loading…
Reference in a new issue