summaryrefslogtreecommitdiffstats
path: root/src/demos/testContextSharing/TestContextSharing.java
diff options
context:
space:
mode:
authorKenneth Russel <[email protected]>2005-07-07 22:50:13 +0000
committerKenneth Russel <[email protected]>2005-07-07 22:50:13 +0000
commit3cce9fefe99b2a9fe7372c5be21ba7a49f98bf66 (patch)
treef1c260f62b6659b9fb5fa6d96e4c8723e4fc55d7 /src/demos/testContextSharing/TestContextSharing.java
parent9d278dff86c07218ff2616745381ccc2689f8ea5 (diff)
Merged with main trunk (tag JOGL_PRE_1_1_1)
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/branches/JSR-231@98 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
Diffstat (limited to 'src/demos/testContextSharing/TestContextSharing.java')
-rw-r--r--src/demos/testContextSharing/TestContextSharing.java9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/demos/testContextSharing/TestContextSharing.java b/src/demos/testContextSharing/TestContextSharing.java
index e50c4d0..569fa50 100644
--- a/src/demos/testContextSharing/TestContextSharing.java
+++ b/src/demos/testContextSharing/TestContextSharing.java
@@ -20,7 +20,7 @@
* EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES,
* INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A
* PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN
- * MIDROSYSTEMS, INC. ("SUN") AND ITS LICENSORS SHALL NOT BE LIABLE FOR
+ * MICROSYSTEMS, INC. ("SUN") AND ITS LICENSORS SHALL NOT BE LIABLE FOR
* ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR
* DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL SUN OR
* ITS LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR FOR
@@ -97,12 +97,7 @@ public class TestContextSharing {
class Listener implements GLEventListener {
public void init(GLDrawable drawable) {
- // init() might get called more than once if the GLCanvas is
- // added and removed, but we only want to install the DebugGL
- // pipeline once
- if (!(drawable.getGL() instanceof DebugGL)) {
- drawable.setGL(new DebugGL(drawable.getGL()));
- }
+ drawable.setGL(new DebugGL(drawable.getGL()));
GL gl = drawable.getGL();