diff options
author | Kenneth Russel <[email protected]> | 2005-09-12 15:55:14 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2005-09-12 15:55:14 +0000 |
commit | f07ac5bbe7c05d9d56468e106f9b248ed685528d (patch) | |
tree | f01db7c9ea832de8a99452f25b1a6f55ef1784ce /src | |
parent | e4f34a8d3f89790b9d25d5c7548b60a9dffdc92b (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
Diffstat (limited to 'src')
-rw-r--r-- | src/demos/gears/Gears.java | 4 |
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); |