diff options
author | Kenneth Russel <[email protected]> | 2008-12-16 01:11:33 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2008-12-16 01:11:33 +0000 |
commit | ccf8ebfd0f2677270c2b1573d73f1049b33ffd54 (patch) | |
tree | cf3232d784e6bf00f4214225af776db55ab071d2 /src/demos/gears | |
parent | 84156a4c6ae648f51e008d1176409bdcb0b038cd (diff) |
Moved javax.media.opengl.awt.gl2.GL2JPanel (back) to
javax.media.opengl.awt.GLJPanel because the expectation is that the
AWT-based implementation will never need to run on only the ES1 or ES2
subset, and to conform to earlier releases' naming convention.
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/branches/JOGL_2_SANDBOX@304 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
Diffstat (limited to 'src/demos/gears')
-rw-r--r-- | src/demos/gears/Gears.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/demos/gears/Gears.java b/src/demos/gears/Gears.java index 6b646fe..3faa5b9 100644 --- a/src/demos/gears/Gears.java +++ b/src/demos/gears/Gears.java @@ -13,7 +13,7 @@ import javax.media.opengl.GLAutoDrawable; import javax.media.opengl.GLEventListener; import javax.media.opengl.awt.AWTGLAutoDrawable; import javax.media.opengl.awt.GLCanvas; -import javax.media.opengl.awt.gl2.GL2JPanel; +import javax.media.opengl.awt.GLJPanel; import javax.media.opengl.util.Animator; /** @@ -135,9 +135,9 @@ public class Gears implements GLEventListener, MouseListener, MouseMotionListene // Special handling for the case where the GLJPanel is translucent // and wants to be composited with other Java 2D content - if ((drawable instanceof GL2JPanel) && - !((GL2JPanel) drawable).isOpaque() && - ((GL2JPanel) drawable).shouldPreserveColorBufferIfTranslucent()) { + if ((drawable instanceof GLJPanel) && + !((GLJPanel) drawable).isOpaque() && + ((GLJPanel) drawable).shouldPreserveColorBufferIfTranslucent()) { gl.glClear(GL2.GL_DEPTH_BUFFER_BIT); } else { gl.glClear(GL2.GL_COLOR_BUFFER_BIT | GL2.GL_DEPTH_BUFFER_BIT); |