aboutsummaryrefslogtreecommitdiffstats
path: root/CNativeCode/gltool.c
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2002-04-25 03:21:58 +0000
committerSven Gothel <[email protected]>2002-04-25 03:21:58 +0000
commit53a0faa0cce4546b441cb6af033adaabd2f1da94 (patch)
treee92bb216d2b13269c179d4e049ec5384bca1d25e /CNativeCode/gltool.c
parent6114297dac0848d470a3211915bea64f49d584e7 (diff)
added pepijn's bugfix (jdk <= 1.3 GC, tesselation)
SGI Irix capable code .. correct NIO usage for tesselation .. minor stuff ..
Diffstat (limited to 'CNativeCode/gltool.c')
-rwxr-xr-xCNativeCode/gltool.c7
1 files changed, 7 insertions, 0 deletions
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;
}