aboutsummaryrefslogtreecommitdiffstats
path: root/CNativeCode/glxtool.c
diff options
context:
space:
mode:
authorKenneth Russel <[email protected]>2001-11-11 21:30:13 +0000
committerKenneth Russel <[email protected]>2001-11-11 21:30:13 +0000
commitf610ac01f50165b2ea6bc4a81d02abf2e222d876 (patch)
tree2b54144d82803e6665a371b6eeeae6812a16e3ac /CNativeCode/glxtool.c
parent3b0e7fd364c6d61b97f4f2daf405b30e662fddc7 (diff)
Support for NVidia AllocateMemoryNV extension and fixed problem with extensions not being loaded
Diffstat (limited to 'CNativeCode/glxtool.c')
-rw-r--r--CNativeCode/glxtool.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/CNativeCode/glxtool.c b/CNativeCode/glxtool.c
index c027f5c..449933d 100644
--- a/CNativeCode/glxtool.c
+++ b/CNativeCode/glxtool.c
@@ -19,15 +19,17 @@
* use fetch_GL_FUNCS (gltool.c) instead
*/
void LIBAPIENTRY fetch_GLX_FUNCS (const char * libGLName,
- const char * libGLUName, int force)
+ const char * libGLUName, int force, int reload)
{
static int _firstRun = 1;
- if(force)
- _firstRun = 1;
+ if (!reload) {
+ if(force)
+ _firstRun = 1;
- if(!_firstRun)
- return;
+ if(!_firstRun)
+ return;
+ }
#define GET_GL_PROCADDRESS(a) getGLProcAddressHelper (libGLName, libGLUName, (a), NULL, 1, 0);