aboutsummaryrefslogtreecommitdiffstats
path: root/src/native/jogl
diff options
context:
space:
mode:
Diffstat (limited to 'src/native/jogl')
-rw-r--r--src/native/jogl/InternalBufferUtils.c9
-rw-r--r--src/native/jogl/JAWT_DrawingSurfaceInfo.c9
2 files changed, 9 insertions, 9 deletions
diff --git a/src/native/jogl/InternalBufferUtils.c b/src/native/jogl/InternalBufferUtils.c
index 083f51b42..aced365b7 100644
--- a/src/native/jogl/InternalBufferUtils.c
+++ b/src/native/jogl/InternalBufferUtils.c
@@ -52,3 +52,12 @@ JNIEXPORT jobject JNICALL
Java_com_sun_opengl_impl_InternalBufferUtils_newDirectByteBuffer(JNIEnv* env, jclass unused, jlong address, jint capacity) {
return (*env)->NewDirectByteBuffer(env, (void*) (intptr_t) address, capacity);
}
+
+#ifdef __sun
+#include <dlfcn.h>
+/* Sun's GLX implementation doesn't have glXGetProcAddressARB (or
+ glXGetProcAddress) so we implement it here */
+void (*glXGetProcAddressARB(const char *procname))() {
+ return (void (*)()) dlsym(RTLD_DEFAULT, procname);
+}
+#endif /* __ sun */
diff --git a/src/native/jogl/JAWT_DrawingSurfaceInfo.c b/src/native/jogl/JAWT_DrawingSurfaceInfo.c
index 6eeaf053b..ae5c3f935 100644
--- a/src/native/jogl/JAWT_DrawingSurfaceInfo.c
+++ b/src/native/jogl/JAWT_DrawingSurfaceInfo.c
@@ -92,12 +92,3 @@ Java_com_sun_opengl_impl_JAWT_1DrawingSurfaceInfo_platformInfo0(JNIEnv* env, job
}
return (*env)->CallStaticObjectMethod(env, platformDSIClass, factoryMethod, dirbuf);
}
-
-#ifdef __sun
-#include <dlfcn.h>
-/* Sun's GLX implementation doesn't have glXGetProcAddressARB (or
- glXGetProcAddress) so we implement it here */
-void (*glXGetProcAddressARB(const char *procname))() {
- return (void (*)()) dlsym(RTLD_DEFAULT, procname);
-}
-#endif /* __ sun */