From 981c56ad799c13072da25239163d8a97b4ba1dfa Mon Sep 17 00:00:00 2001 From: Kenneth Russel Date: Thu, 17 Apr 2008 05:41:12 +0000 Subject: 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 --- src/classes/javax/media/opengl/GLCanvas.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/classes') 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); } } -- cgit v1.2.3