diff options
author | Kevin Rushforth <[email protected]> | 2004-07-02 20:23:33 +0000 |
---|---|---|
committer | Kevin Rushforth <[email protected]> | 2004-07-02 20:23:33 +0000 |
commit | f76cc9e181e325dabd803af7bd26c1ef3a06abc6 (patch) | |
tree | c8dbd9301723108633ff470d9bb94576482b0979 | |
parent | c239135499f5f84ca501f3169ee86744889d78bc (diff) |
Issue number: 3
Submitted by: kcr
Fixed Issue 3: lg3d: gets unsatisified link error on various ATI cards
git-svn-id: https://svn.java.net/svn/j3d-core~svn/trunk@23 ba19aa83-45c5-6ac9-afd3-db810772062c
-rw-r--r-- | src/classes/share/javax/media/j3d/VersionInfo.java | 2 | ||||
-rw-r--r-- | src/native/ogl/Canvas3D.c | 30 | ||||
-rw-r--r-- | www/index.html | 4 |
3 files changed, 31 insertions, 5 deletions
diff --git a/src/classes/share/javax/media/j3d/VersionInfo.java b/src/classes/share/javax/media/j3d/VersionInfo.java index d70147c..64c18f8 100644 --- a/src/classes/share/javax/media/j3d/VersionInfo.java +++ b/src/classes/share/javax/media/j3d/VersionInfo.java @@ -61,7 +61,7 @@ class VersionInfo extends Object { * This will typically by null for final, released builds, but * should be non-null for all other builds. */ - private static final String VERSION_BUILD = "build3"; + private static final String VERSION_BUILD = "build4"; /** * Time and date stamp appended to the end of the version string. diff --git a/src/native/ogl/Canvas3D.c b/src/native/ogl/Canvas3D.c index 86d037d..d16fa37 100644 --- a/src/native/ogl/Canvas3D.c +++ b/src/native/ogl/Canvas3D.c @@ -892,14 +892,26 @@ BOOL getPropertiesFromCurrentContext( if(ctxInfo->multi_draw_arrays_ext) { ctxInfo->glMultiDrawArraysEXT = glMultiDrawArraysEXT; ctxInfo->glMultiDrawElementsEXT = glMultiDrawElementsEXT; + if ((ctxInfo->glMultiDrawArraysEXT == NULL) || + (ctxInfo->glMultiDrawElementsEXT == NULL)) { + ctxInfo->multi_draw_arrays_ext = JNI_FALSE; + } } else if (ctxInfo->multi_draw_arrays_sun) { ctxInfo->glMultiDrawArraysEXT = glMultiDrawArraysSUN; ctxInfo->glMultiDrawElementsEXT = glMultiDrawElementsSUN; + if ((ctxInfo->glMultiDrawArraysEXT == NULL) || + (ctxInfo->glMultiDrawElementsEXT == NULL)) { + ctxInfo->multi_draw_arrays_ext = JNI_FALSE; + } } if(ctxInfo->compiled_vertex_array_ext) { ctxInfo->glLockArraysEXT = glLockArraysEXT; ctxInfo->glUnlockArraysEXT = glUnlockArraysEXT; + if ((ctxInfo->glLockArraysEXT == NULL) || + (ctxInfo->glUnlockArraysEXT == NULL)) { + ctxInfo->compiled_vertex_array_ext = JNI_FALSE; + } } if(ctxInfo->arb_multitexture){ @@ -908,14 +920,28 @@ BOOL getPropertiesFromCurrentContext( ctxInfo->glMultiTexCoord3fvARB = glMultiTexCoord3fvARB; ctxInfo->glMultiTexCoord4fvARB = glMultiTexCoord4fvARB; ctxInfo->glActiveTextureARB = glActiveTextureARB; + if ((ctxInfo->glClientActiveTextureARB == NULL) || + (ctxInfo->glMultiTexCoord2fvARB == NULL) || + (ctxInfo->glMultiTexCoord3fvARB == NULL) || + (ctxInfo->glMultiTexCoord4fvARB == NULL) || + (ctxInfo->glActiveTextureARB == NULL)) { + ctxInfo->arb_multitexture = JNI_FALSE; + } } if(ctxInfo->arb_transpose_matrix) { ctxInfo->glLoadTransposeMatrixdARB = glLoadTransposeMatrixdARB; ctxInfo->glMultTransposeMatrixdARB = glMultTransposeMatrixdARB; + if ((ctxInfo->glLoadTransposeMatrixdARB == NULL) || + (ctxInfo->glMultTransposeMatrixdARB == NULL)) { + ctxInfo->arb_transpose_matrix = JNI_FALSE; + } } - if(ctxInfo->global_alpha_sun) + if(ctxInfo->global_alpha_sun) { ctxInfo->glGlobalAlphaFactorfSUN = glGlobalAlphaFactorfSUN; - + if (ctxInfo->glGlobalAlphaFactorfSUN == NULL) { + ctxInfo->global_alpha_sun = JNI_FALSE; + } + } glXGetConfig((Display *) display, (XVisualInfo *) vinfo, GLX_STENCIL_SIZE, &stencilSize); diff --git a/www/index.html b/www/index.html index 17a4ef5..18e7e04 100644 --- a/www/index.html +++ b/www/index.html @@ -51,7 +51,7 @@ compatibility of the API.<br> section of this project on java.net: Release (or FCS) builds; Experimental (early access) builds; and Daily/Weekly builds. The latest release build of Java 3D v1.3.1 is available. A fairly stable -experimental build, labeled as Java 3D v 1.3.2-build3 is now +experimental build, labeled as Java 3D v 1.3.2-build4 is now available. We will set up daily or weekly builds in the near future.<br> </p> <h3>How to Contribute</h3> @@ -96,7 +96,7 @@ list is for automated issues tracking, and the <span change messages (for changes to the parent java3d web pages only).</p> <p>For those who prefer a forum to a discussion mailing list, we have created the -<a href="https://java3d.dev.java.net/servlets/ProjectForumView">Java 3D +<a href="http://java3d.dev.java.net/servlets/ProjectForumView">Java 3D forum</a>, hosted as part of the JavaDesktop Community. Messages posted on the forum are cross-posted to <a href="mailto:[email protected]">[email protected]</a> |