diff options
author | Michael Bien <[email protected]> | 2011-02-07 14:16:58 +0100 |
---|---|---|
committer | Michael Bien <[email protected]> | 2011-02-07 14:16:58 +0100 |
commit | d068770b551f6e7f35638ce0426d507f38cdf8b5 (patch) | |
tree | f074d9474b63d5f9031fcea63035474c525018b5 /src/com | |
parent | 12b828d006ed24f41afcf181f1e9863e982cfd1d (diff) |
GLProfile.initSingleton(false) for webstart compatibility.
Diffstat (limited to 'src/com')
3 files changed, 9 insertions, 3 deletions
diff --git a/src/com/jogamp/opencl/demos/fractal/MultiDeviceFractal.java b/src/com/jogamp/opencl/demos/fractal/MultiDeviceFractal.java index 61002b0..9fcd172 100644 --- a/src/com/jogamp/opencl/demos/fractal/MultiDeviceFractal.java +++ b/src/com/jogamp/opencl/demos/fractal/MultiDeviceFractal.java @@ -544,7 +544,10 @@ public class MultiDeviceFractal implements GLEventListener { } public static void main(String args[]) { - GLProfile.initSingleton(true); + + //false for webstart compatibility + GLProfile.initSingleton(false); + SwingUtilities.invokeLater(new Runnable() { public void run() { new MultiDeviceFractal(512, 512); diff --git a/src/com/jogamp/opencl/demos/joglinterop/GLCLInteroperabilityDemo.java b/src/com/jogamp/opencl/demos/joglinterop/GLCLInteroperabilityDemo.java index 1ba9c6e..fbd3775 100644 --- a/src/com/jogamp/opencl/demos/joglinterop/GLCLInteroperabilityDemo.java +++ b/src/com/jogamp/opencl/demos/joglinterop/GLCLInteroperabilityDemo.java @@ -274,7 +274,9 @@ public class GLCLInteroperabilityDemo implements GLEventListener { public void dispose(GLAutoDrawable drawable) { } public static void main(String[] args) { - GLProfile.initSingleton(true); + //false for webstart compatibility + GLProfile.initSingleton(false); + new GLCLInteroperabilityDemo(); } diff --git a/src/com/jogamp/opencl/demos/julia3d/Julia3d.java b/src/com/jogamp/opencl/demos/julia3d/Julia3d.java index 45bf706..3b9c715 100644 --- a/src/com/jogamp/opencl/demos/julia3d/Julia3d.java +++ b/src/com/jogamp/opencl/demos/julia3d/Julia3d.java @@ -197,7 +197,8 @@ public class Julia3d { public static void main(String[] args) { - GLProfile.initSingleton(true); + //false for webstart compatibility + GLProfile.initSingleton(false); final RenderingConfig config = RenderingConfig.create() .setWidth(640).setHeight(480) |