summaryrefslogtreecommitdiffstats
path: root/src/demos
diff options
context:
space:
mode:
Diffstat (limited to 'src/demos')
-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);