diff options
Diffstat (limited to 'make')
-rw-r--r-- | make/config/jogl/glu-CustomJavaCode-base.java | 9 | ||||
-rw-r--r-- | make/config/jogl/glu-CustomJavaCode-gl2.java | 4 | ||||
-rw-r--r-- | make/config/jogl/glu-CustomJavaCode-gl2es1.java | 4 | ||||
-rw-r--r-- | make/config/jogl/glu-base.cfg | 1 | ||||
-rw-r--r-- | make/config/jogl/glu-gl2.cfg | 1 | ||||
-rw-r--r-- | make/config/jogl/glu-gl2es1.cfg | 1 | ||||
-rw-r--r-- | make/scripts/tests.sh | 4 |
7 files changed, 20 insertions, 4 deletions
diff --git a/make/config/jogl/glu-CustomJavaCode-base.java b/make/config/jogl/glu-CustomJavaCode-base.java index 21d6277e9..48fe31329 100644 --- a/make/config/jogl/glu-CustomJavaCode-base.java +++ b/make/config/jogl/glu-CustomJavaCode-base.java @@ -83,11 +83,16 @@ static { Class _gl2Class=null; Class _gl2es1Class=null; try { - _gl2Class = Class.forName("javax.media.opengl.glu.gl2.GLUgl2"); - _gl2es1Class = Class.forName("javax.media.opengl.glu.gl2es1.GLUgl2es1"); + final ClassLoader cl = GLU.class.getClassLoader(); + _gl2Class = Class.forName("javax.media.opengl.glu.gl2.GLUgl2", false, cl); + _gl2es1Class = Class.forName("javax.media.opengl.glu.gl2es1.GLUgl2es1", false, cl); } catch (Throwable t) {} gl2Class = _gl2Class; gl2es1Class = _gl2es1Class; + /** No native code, not required nor possible + if( !initializeImpl() ) { + throw new RuntimeException("Initialization failure"); + } */ } /** diff --git a/make/config/jogl/glu-CustomJavaCode-gl2.java b/make/config/jogl/glu-CustomJavaCode-gl2.java index 4dcb5691e..c8ac9403b 100644 --- a/make/config/jogl/glu-CustomJavaCode-gl2.java +++ b/make/config/jogl/glu-CustomJavaCode-gl2.java @@ -7,6 +7,10 @@ static { if (val != null && !val.toLowerCase().equals("false")) { useJavaMipmapCode = false; } + // Native code exists + if( !initializeImpl() ) { + throw new RuntimeException("Initialization failure"); + } return null; } }); diff --git a/make/config/jogl/glu-CustomJavaCode-gl2es1.java b/make/config/jogl/glu-CustomJavaCode-gl2es1.java index 203d1eeae..de9c65b8d 100644 --- a/make/config/jogl/glu-CustomJavaCode-gl2es1.java +++ b/make/config/jogl/glu-CustomJavaCode-gl2es1.java @@ -8,6 +8,10 @@ static { if (val != null && !val.toLowerCase().equals("false")) { useJavaMipmapCode = false; } + // No native code, not required nor possible + // if( !initializeImpl() ) { + // throw new RuntimeException("Initialization failure"); + // } return null; } }); diff --git a/make/config/jogl/glu-base.cfg b/make/config/jogl/glu-base.cfg index f4021d6d8..93aff1fa9 100644 --- a/make/config/jogl/glu-base.cfg +++ b/make/config/jogl/glu-base.cfg @@ -18,6 +18,7 @@ Ignore gluScaleImage # Custom Java code for GLU class IncludeAs CustomJavaCode GLU glu-CustomJavaCode-base.java +ManualStaticInit GLU # Imports for the Error and Registry classes Import jogamp.opengl.glu.error.Error diff --git a/make/config/jogl/glu-gl2.cfg b/make/config/jogl/glu-gl2.cfg index a634e3113..9a15645a6 100644 --- a/make/config/jogl/glu-gl2.cfg +++ b/make/config/jogl/glu-gl2.cfg @@ -34,6 +34,7 @@ CustomCCode #include <GL/glu.h> # Custom Java code for GLU class IncludeAs CustomJavaCode GLUgl2 glu-CustomJavaCode-gl2.java +ManualStaticInit GLUgl2 # GLU needs access to the GLUtesselatorImpl class for GLUtesselator, # to the Mipmap class for scaling and mipmap generation, diff --git a/make/config/jogl/glu-gl2es1.cfg b/make/config/jogl/glu-gl2es1.cfg index fa7011360..35dd6a2e0 100644 --- a/make/config/jogl/glu-gl2es1.cfg +++ b/make/config/jogl/glu-gl2es1.cfg @@ -18,6 +18,7 @@ Ignore gluScaleImage # Custom Java code for GLU class IncludeAs CustomJavaCode GLUgl2es1 glu-CustomJavaCode-gl2es1.java +ManualStaticInit GLUgl2es1 Import javax.media.opengl.GLES1 Import jogamp.opengl.glu.mipmap.Mipmap diff --git a/make/scripts/tests.sh b/make/scripts/tests.sh index 19eb6dede..532bf518b 100644 --- a/make/scripts/tests.sh +++ b/make/scripts/tests.sh @@ -374,7 +374,7 @@ function testawtswt() { # demos (any TK, more user driven tests) # #testnoawt com.jogamp.opengl.test.junit.jogl.demos.es1.newt.TestGearsES1NEWT $* -#testnoawt com.jogamp.opengl.test.junit.jogl.demos.es1.newt.TestOlympicES1NEWT $* +testnoawt com.jogamp.opengl.test.junit.jogl.demos.es1.newt.TestOlympicES1NEWT $* #testnoawt com.jogamp.opengl.test.junit.jogl.demos.es1.newt.TestRedSquareES1NEWT $* #testawt com.jogamp.opengl.test.junit.jogl.demos.es2.awt.TestGearsES2AWT $* #testawt com.jogamp.opengl.test.junit.jogl.demos.es2.awt.TestGearsES2GLJPanelAWT $* @@ -634,7 +634,7 @@ function testawtswt() { #testawt com.jogamp.opengl.test.junit.jogl.awt.TestGLCanvasAWTActionDeadlock00AWT $* #testawt com.jogamp.opengl.test.junit.jogl.awt.TestGLCanvasAWTActionDeadlock01AWT $* #testawt com.jogamp.opengl.test.junit.jogl.awt.TestGLCanvasAWTActionDeadlock02AWT $* -testawt com.jogamp.opengl.test.junit.jogl.awt.TestGLJPanelTextureStateAWT $* +#testawt com.jogamp.opengl.test.junit.jogl.awt.TestGLJPanelTextureStateAWT $* #testawt com.jogamp.opengl.test.junit.jogl.awt.TestGLJPanelResize01AWT $* #testawt com.jogamp.opengl.test.bugs.Bug735Inv0AppletAWT $* |