From ac1f6a6df5542a06e49166d570df6ade252ab0f1 Mon Sep 17 00:00:00 2001 From: Kenneth Russel Date: Tue, 1 Aug 2006 23:00:08 +0000 Subject: Revised Java2D/JOGL bridge to support new share context argument to CGLSurfaceData.createOGLContextOnSurface(Graphics, long). Testing indicates that sharing of textures, etc. between pbuffers and the context created on the Java2D back buffer is no longer functioning, however. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@871 232f8b59-042b-4e1e-8c03-345bb8c30851 --- src/classes/javax/media/opengl/GLJPanel.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/classes/javax/media') diff --git a/src/classes/javax/media/opengl/GLJPanel.java b/src/classes/javax/media/opengl/GLJPanel.java index 6ab2a9ec7..f4c59159f 100644 --- a/src/classes/javax/media/opengl/GLJPanel.java +++ b/src/classes/javax/media/opengl/GLJPanel.java @@ -556,7 +556,7 @@ public class GLJPanel extends JPanel implements GLAutoDrawable { joglContext = joglDrawable.createContext(shareWith); } else if (GLDrawableFactoryImpl.getFactoryImpl().canCreateContextOnJava2DSurface()) { // Mac OS X code path - joglContext = GLDrawableFactoryImpl.getFactoryImpl().createContextOnJava2DSurface(g); + joglContext = GLDrawableFactoryImpl.getFactoryImpl().createContextOnJava2DSurface(g, shareWith); } if (DEBUG) { joglContext.setGL(new DebugGL(joglContext.getGL())); -- cgit v1.2.3