diff options
Diffstat (limited to 'CNativeCode/glxtool.c')
-rw-r--r-- | CNativeCode/glxtool.c | 12 |
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); |