diff options
author | Philip Jordan <[email protected]> | 2023-05-25 10:51:49 +1200 |
---|---|---|
committer | Philip Jordan <[email protected]> | 2023-05-25 10:51:49 +1200 |
commit | 7a987ad9745f1b9d8f9539d97753ee4c7a10a139 (patch) | |
tree | ddebe2c2d2c64b9684bce14f1f7269b7a92090b5 | |
parent | 75c877b2f5cb8e32916117ac5fc3e030e4999504 (diff) |
shadowmap branch brought inline with jogl 2.4.0
-rw-r--r-- | pom.xml | 19 | ||||
-rw-r--r-- | src/main/java/org/jogamp/java3d/Jogl2es2Pipeline.java | 23 | ||||
-rw-r--r-- | src/main/java/org/jogamp/java3d/JoglPipeline.java | 5 |
3 files changed, 27 insertions, 20 deletions
@@ -124,7 +124,20 @@ <!-- Deploy to OSS Sonatype repository by default when releasing. --> <releaseProfiles>sonatype-oss-release</releaseProfiles> </properties> - + <repositories> + <repository> + <id>jogamp-remote</id> + <name>jogamp test mirror</name> + <url>https://www.jogamp.org/deployment/maven/</url> + <layout>default</layout> + </repository> + <repository> + <id>jogamp-java3d-remote</id> + <name>jogamp java3d test mirror</name> + <url>https://www.jogamp.org/deployment/maven-java3d/</url> + <layout>default</layout> + </repository> + </repositories> <dependencies> <dependency> <groupId>${project.groupId}</groupId> @@ -133,12 +146,12 @@ </dependency> <dependency> <groupId>org.jogamp.gluegen</groupId> - <artifactId>gluegen-rt</artifactId> + <artifactId>gluegen-rt-main</artifactId> <version>${jogamp.version}</version> </dependency> <dependency> <groupId>org.jogamp.jogl</groupId> - <artifactId>jogl-all</artifactId> + <artifactId>jogl-all-main</artifactId> <version>${jogamp.version}</version> </dependency> </dependencies> diff --git a/src/main/java/org/jogamp/java3d/Jogl2es2Pipeline.java b/src/main/java/org/jogamp/java3d/Jogl2es2Pipeline.java index de03f1a..0f1cc29 100644 --- a/src/main/java/org/jogamp/java3d/Jogl2es2Pipeline.java +++ b/src/main/java/org/jogamp/java3d/Jogl2es2Pipeline.java @@ -56,6 +56,7 @@ import org.jogamp.vecmath.Vector4f; import com.jogamp.common.nio.Buffers; import com.jogamp.common.os.Platform; +import com.jogamp.common.util.VersionNumber; import com.jogamp.nativewindow.AbstractGraphicsDevice; import com.jogamp.nativewindow.AbstractGraphicsScreen; import com.jogamp.nativewindow.CapabilitiesChooser; @@ -6791,23 +6792,15 @@ class Jogl2es2Pipeline extends Jogl2es2DEPPipeline { } if (Platform.getOSName().equalsIgnoreCase("Windows 10") && //win10 - (Platform.JAVA_VERSION_NUMBER.compareTo(Platform.Version18) > 0) || // 1.9 or 1.8 > 51 //Version 19 was swapped to version 9 due to JEP 223 in jogl 2.4.0 - (Platform.JAVA_VERSION_NUMBER.compareTo(Platform.Version18) == 0 - && Platform.JAVA_VERSION_UPDATE > 51) && // - Platform.getJavaVMName() - .toLowerCase() - .startsWith( - "java hotspot(tm)"))// e.g. Java HotSpot(TM) 64-Bit Server VM ; OpenJDK would give OpenJDK 64-Bit Server VM + (Platform.JAVA_VERSION_NUMBER.compareTo(new VersionNumber(1, 8, 0)) > 0) || // 1.9 or 1.8 > 51 //Version 19 was swapped to version 9 due to JEP 223 in jogl 2.4.0 + (Platform.JAVA_VERSION_NUMBER.compareTo(new VersionNumber(1, 8, 0)) == 0 && Platform.JAVA_VERSION_UPDATE > 51) && // + Platform.getJavaVMName().toLowerCase().startsWith("java hotspot(tm)"))// e.g. Java HotSpot(TM) 64-Bit Server VM ; OpenJDK would give OpenJDK 64-Bit Server VM { - System.err.println( - "Issue: The use of an Intel HD2000/3000 driver in combination with Windows 10 and"); - System.err.println( - "a JRE greater than 1.8 update 51. Please downgrade the JRE in use to JRE 1.8u51 or lower."); - System.err.println( - "For more information please see https://jogamp.org/bugzilla/show_bug.cgi?id=1278."); + System.err.println("Issue: The use of an Intel HD2000/3000 driver in combination with Windows 10 and"); + System.err.println("a JRE greater than 1.8 update 51. Please downgrade the JRE in use to JRE 1.8u51 or lower."); + System.err.println("For more information please see https://jogamp.org/bugzilla/show_bug.cgi?id=1278."); } - System.err.println( - "If this software has been supplied to you and you are unable to modify it's configuration"); + System.err.println("If this software has been supplied to you and you are unable to modify it's configuration"); System.err.println("please contact the suppler of this software with this entire message."); } diff --git a/src/main/java/org/jogamp/java3d/JoglPipeline.java b/src/main/java/org/jogamp/java3d/JoglPipeline.java index 8f1a903..92b2d13 100644 --- a/src/main/java/org/jogamp/java3d/JoglPipeline.java +++ b/src/main/java/org/jogamp/java3d/JoglPipeline.java @@ -79,6 +79,7 @@ import com.jogamp.opengl.Threading; import com.jogamp.common.nio.Buffers; import com.jogamp.common.os.Platform; +import com.jogamp.common.util.VersionNumber; import com.jogamp.nativewindow.awt.AWTGraphicsConfiguration; import com.jogamp.nativewindow.awt.AWTGraphicsDevice; import com.jogamp.nativewindow.awt.AWTGraphicsScreen; @@ -8135,8 +8136,8 @@ static boolean hasFBObjectSizeChanged(JoglDrawable jdraw, int width, int height) } if (Platform.getOSName().equalsIgnoreCase("Windows 10") && //win10 - (Platform.JAVA_VERSION_NUMBER.compareTo(Platform.Version18) > 0) || // 1.9 or 1.8 > 51 //Version 19 was swapped to version 9 due to JEP 223 in jogl 2.4.0 - (Platform.JAVA_VERSION_NUMBER.compareTo(Platform.Version18) == 0 && Platform.JAVA_VERSION_UPDATE > 51) && // + (Platform.JAVA_VERSION_NUMBER.compareTo(new VersionNumber(1, 8, 0)) > 0) || // 1.9 or 1.8 > 51 //Version 19 was swapped to version 9 due to JEP 223 in jogl 2.4.0 + (Platform.JAVA_VERSION_NUMBER.compareTo(new VersionNumber(1, 8, 0)) == 0 && Platform.JAVA_VERSION_UPDATE > 51) && // Platform.getJavaVMName().toLowerCase().startsWith("java hotspot(tm)"))// e.g. Java HotSpot(TM) 64-Bit Server VM ; OpenJDK would give OpenJDK 64-Bit Server VM { System.err.println("Issue: The use of an Intel HD2000/3000 driver in combination with Windows 10 and"); |