summaryrefslogtreecommitdiffstats
path: root/src/demos/hwShadowmapsSimple
diff options
context:
space:
mode:
authorFirst Last <[email protected]>2005-06-16 23:02:03 +0000
committerFirst Last <[email protected]>2005-06-16 23:02:03 +0000
commit9d278dff86c07218ff2616745381ccc2689f8ea5 (patch)
tree46e3493919362a74f1d2e03e2622127eed0b9856 /src/demos/hwShadowmapsSimple
parent9d209d3b6ae12604e666d7b655bd1f19e70ee48b (diff)
This commit was manufactured by cvs2svn to create branch 'JSR-231'.
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/branches/JSR-231@93 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
Diffstat (limited to 'src/demos/hwShadowmapsSimple')
-rw-r--r--src/demos/hwShadowmapsSimple/HWShadowmapsSimple.java16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/demos/hwShadowmapsSimple/HWShadowmapsSimple.java b/src/demos/hwShadowmapsSimple/HWShadowmapsSimple.java
index f97e875..13f3997 100644
--- a/src/demos/hwShadowmapsSimple/HWShadowmapsSimple.java
+++ b/src/demos/hwShadowmapsSimple/HWShadowmapsSimple.java
@@ -161,8 +161,12 @@ public class HWShadowmapsSimple {
class Listener implements GLEventListener {
public void init(GLDrawable drawable) {
- // Use debug pipeline
- // drawable.setGL(new DebugGL(drawable.getGL()));
+ // 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()));
+ // }
GL gl = drawable.getGL();
GLU glu = drawable.getGLU();
@@ -374,8 +378,12 @@ public class HWShadowmapsSimple {
class PbufferListener implements GLEventListener {
public void init(GLDrawable drawable) {
- // Use debug pipeline
- // drawable.setGL(new DebugGL(drawable.getGL()));
+ // 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()));
+ // }
GL gl = drawable.getGL();
GLU glu = drawable.getGLU();