aboutsummaryrefslogtreecommitdiffstats
path: root/src/native/ogl/DrawingSurfaceObjectAWT.c
diff options
context:
space:
mode:
authorKevin Rushforth <[email protected]>2004-10-22 22:18:16 +0000
committerKevin Rushforth <[email protected]>2004-10-22 22:18:16 +0000
commit94b66b7ef4035c453b66a0a80e60c2afbaf310d5 (patch)
treeeefeb6c84818390705ce489c104dd79996beada1 /src/native/ogl/DrawingSurfaceObjectAWT.c
parente59b32556030f7264798076f12d3a912317cae7e (diff)
1. Fixed Issue 80 : libj3dcore-ogl.so fails to load on Linux systems without certain GL extensions
2. Added missing file (src/native/share/build-linux-amd64.xml) to CVS repository for amd64 build. git-svn-id: https://svn.java.net/svn/j3d-core~svn/trunk@61 ba19aa83-45c5-6ac9-afd3-db810772062c
Diffstat (limited to 'src/native/ogl/DrawingSurfaceObjectAWT.c')
-rw-r--r--src/native/ogl/DrawingSurfaceObjectAWT.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/native/ogl/DrawingSurfaceObjectAWT.c b/src/native/ogl/DrawingSurfaceObjectAWT.c
index 71e4376..012f5b9 100644
--- a/src/native/ogl/DrawingSurfaceObjectAWT.c
+++ b/src/native/ogl/DrawingSurfaceObjectAWT.c
@@ -28,11 +28,7 @@
#endif /* DEBUG */
-#if defined(SOLARIS) || defined(__linux__)
-#pragma weak JAWT_GetAWT
-#endif
-
-#ifdef SOLARIS
+#if defined(SOLARIS) && defined(__sparc)
#pragma weak XDgaGetXineramaInfo
/*
@@ -43,7 +39,7 @@
* standard or replaced with a fully supported API.
*/
#include "panoramiXext.h"
-#endif /* SOLARIS */
+#endif /* SOLARIS && __sparc */
JNIEXPORT jlong JNICALL
@@ -64,6 +60,7 @@ Java_javax_media_j3d_MasterControl_getAWT(
fprintf(stderr, "AWT not found\n");
return 0;
}
+
return (jlong)awt;
}
@@ -114,6 +111,7 @@ Java_javax_media_j3d_DrawingSurfaceObjectAWT_getDrawingSurfaceWindowIdAWT(
(JAWT_X11DrawingSurfaceInfo*) dsi->platformInfo;
window = (jint)xds->drawable;
+#ifdef __sparc
if (xineramaDisabled) {
XineramaInfo xineramaInfo;
@@ -143,6 +141,7 @@ Java_javax_media_j3d_DrawingSurfaceObjectAWT_getDrawingSurfaceWindowIdAWT(
fprintf(stderr, "Get Xinerama subwid, screen %d failed\n", screen);
}
}
+#endif /* __sparc */
#endif /* SOLARIS */
#ifdef __linux__