aboutsummaryrefslogtreecommitdiffstats
path: root/CNativeCode/GLCallbackHelperJNI.c
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2001-04-06 10:05:10 +0000
committerSven Gothel <[email protected]>2001-04-06 10:05:10 +0000
commitee8232711affbf052576b038aee079250c985416 (patch)
tree6af9c3d569611615d29dee5d051a69ab68e18b0d /CNativeCode/GLCallbackHelperJNI.c
parent6c0f57e382ff6a739551630b0f9acac14f0a539a (diff)
2.7.0 release ..
Diffstat (limited to 'CNativeCode/GLCallbackHelperJNI.c')
-rw-r--r--CNativeCode/GLCallbackHelperJNI.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/CNativeCode/GLCallbackHelperJNI.c b/CNativeCode/GLCallbackHelperJNI.c
index 2039560..ec40372 100644
--- a/CNativeCode/GLCallbackHelperJNI.c
+++ b/CNativeCode/GLCallbackHelperJNI.c
@@ -2,12 +2,14 @@
#include "GLCallbackHelperJNI.h"
#include "jnitools.h"
-#ifndef _WIN32_
- #ifdef macintosh
+#ifdef _WIN32_
+ #include "wgltool.h"
+#else
+ #ifdef _MAC_OS9_
#include <agl.h>
#include <string.h>
#else
- #include <GL/glx.h>
+ #include "glxtool.h"
#endif
#endif
@@ -225,12 +227,12 @@ void LIBAPIENTRY RemoveCallbackNodes(void *cb_obj)
jlong LIBAPIENTRY GetCurrentGLContext()
{
#ifdef _WIN32_
- return (jlong) wglGetCurrentContext();
+ return (jlong) disp__wglGetCurrentContext();
#else
- #ifdef macintosh
+ #ifdef _MAC_OS9_
return (jlong) aglGetCurrentContext();
#else
- return (jlong) glXGetCurrentContext();
+ return (jlong) disp__glXGetCurrentContext();
#endif
#endif
}