From 53a0faa0cce4546b441cb6af033adaabd2f1da94 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Thu, 25 Apr 2002 03:21:58 +0000 Subject: added pepijn's bugfix (jdk <= 1.3 GC, tesselation) SGI Irix capable code .. correct NIO usage for tesselation .. minor stuff .. --- CNativeCode/gltool.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'CNativeCode/gltool.c') diff --git a/CNativeCode/gltool.c b/CNativeCode/gltool.c index 695c0da..c5fa2ff 100755 --- a/CNativeCode/gltool.c +++ b/CNativeCode/gltool.c @@ -189,6 +189,9 @@ int LIBAPIENTRY loadGLLibrary (const char * libGLName, const char * libGLUName, Str255 errName; OSErr returnError=fragNoErr; #endif +#ifdef _X11_ + const char *err=NULL; +#endif if(_glLibsLoaded) return 1; @@ -237,7 +240,9 @@ int LIBAPIENTRY loadGLLibrary (const char * libGLName, const char * libGLUName, libHandleGL = dlopen (libGLName, RTLD_LAZY | RTLD_GLOBAL); if (libHandleGL == NULL) { + err=dlerror(); printf ("GLERROR: cannot access OpenGL library %s\n", libGLName); + if(err!=NULL) printf("\t dlerror: %s\n", err); fflush (NULL); return 0; } @@ -245,7 +250,9 @@ int LIBAPIENTRY loadGLLibrary (const char * libGLName, const char * libGLUName, libHandleGLU = dlopen (libGLUName, RTLD_LAZY | RTLD_GLOBAL); if (libHandleGLU == NULL) { + err=dlerror(); printf ("GLERROR: cannot access GLU library %s\n", libGLUName); + if(err!=NULL) printf("\t dlerror: %s\n", err); fflush (NULL); return 0; } -- cgit v1.2.3