aboutsummaryrefslogtreecommitdiffstats
path: root/src/classes/javax/media/opengl/GLCanvas.java
diff options
context:
space:
mode:
authorKenneth Russel <[email protected]>2008-04-17 05:41:12 +0000
committerKenneth Russel <[email protected]>2008-04-17 05:41:12 +0000
commit981c56ad799c13072da25239163d8a97b4ba1dfa (patch)
treed1082fba7f012cf3dcbb2a5a2ac9fb782a4200e3 /src/classes/javax/media/opengl/GLCanvas.java
parentc4f462ec688ce4410676ddb70132303ff6f114f0 (diff)
Incorporated patch from java.net user neugens to stop downcasting to
GLContextImpl in GLCanvas to make the code more portable git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@1601 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'src/classes/javax/media/opengl/GLCanvas.java')
-rw-r--r--src/classes/javax/media/opengl/GLCanvas.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/classes/javax/media/opengl/GLCanvas.java b/src/classes/javax/media/opengl/GLCanvas.java
index 42f3e68f3..73b3e51bf 100644
--- a/src/classes/javax/media/opengl/GLCanvas.java
+++ b/src/classes/javax/media/opengl/GLCanvas.java
@@ -68,7 +68,7 @@ public class GLCanvas extends Canvas implements GLAutoDrawable {
private GLDrawableHelper drawableHelper = new GLDrawableHelper();
private GLDrawable drawable;
- private GLContextImpl context;
+ private GLContext context;
private boolean autoSwapBufferMode = true;
private boolean sendReshape = false;
@@ -140,7 +140,7 @@ public class GLCanvas extends Canvas implements GLAutoDrawable {
}
if (!Beans.isDesignTime()) {
drawable = GLDrawableFactory.getFactory().getGLDrawable(this, capabilities, chooser);
- context = (GLContextImpl) drawable.createContext(shareWith);
+ context = drawable.createContext(shareWith);
context.setSynchronized(true);
}
}