From f610ac01f50165b2ea6bc4a81d02abf2e222d876 Mon Sep 17 00:00:00 2001 From: Kenneth Russel Date: Sun, 11 Nov 2001 21:30:13 +0000 Subject: Support for NVidia AllocateMemoryNV extension and fixed problem with extensions not being loaded --- CNativeCode/glxtool.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'CNativeCode/glxtool.c') 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); -- cgit v1.2.3