summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenneth Russel <[email protected]>2005-09-12 15:55:14 +0000
committerKenneth Russel <[email protected]>2005-09-12 15:55:14 +0000
commitf07ac5bbe7c05d9d56468e106f9b248ed685528d (patch)
treef01db7c9ea832de8a99452f25b1a6f55ef1784ce
parente4f34a8d3f89790b9d25d5c7548b60a9dffdc92b (diff)
Renamed GLJPanel.isOGLPipelineEnabled() to
GLJPanel.shouldPreserveColorBufferIfTranslucent() and respecified it. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/branches/JSR-231@130 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
-rw-r--r--src/demos/gears/Gears.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/demos/gears/Gears.java b/src/demos/gears/Gears.java
index 4c6f367..9382e40 100644
--- a/src/demos/gears/Gears.java
+++ b/src/demos/gears/Gears.java
@@ -114,8 +114,8 @@ public class Gears implements GLEventListener, MouseListener, MouseMotionListene
GL gl = drawable.getGL();
if ((drawable instanceof GLJPanel) &&
- ((GLJPanel) drawable).isOGLPipelineEnabled() &&
- !((GLJPanel) drawable).isOpaque()) {
+ !((GLJPanel) drawable).isOpaque() &&
+ ((GLJPanel) drawable).shouldPreserveColorBufferIfTranslucent()) {
gl.glClear(GL.GL_DEPTH_BUFFER_BIT);
} else {
gl.glClear(GL.GL_COLOR_BUFFER_BIT | GL.GL_DEPTH_BUFFER_BIT);