From 35435c313ba527c9bea35a14f72492d2f80a9c84 Mon Sep 17 00:00:00 2001 From: Kenneth Russel Date: Mon, 18 Jul 2005 23:15:37 +0000 Subject: Moved pbuffer creation support from MacOSXOnscreenGLDrawable to MacOSXGLContextFactory. This completes the transition from creating pbuffers as a subordinate object of a GLCanvas to creating them as standalone GLDrawables. Deleted code from GLAutoDrawable and all implementations related to pbuffer instantiation. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/branches/JSR-231@328 232f8b59-042b-4e1e-8c03-345bb8c30851 --- .../games/jogl/impl/x11/X11OnscreenGLContext.java | 34 ---------------------- 1 file changed, 34 deletions(-) (limited to 'src/net/java/games/jogl/impl/x11/X11OnscreenGLContext.java') diff --git a/src/net/java/games/jogl/impl/x11/X11OnscreenGLContext.java b/src/net/java/games/jogl/impl/x11/X11OnscreenGLContext.java index cc4375117..952bb9f4f 100644 --- a/src/net/java/games/jogl/impl/x11/X11OnscreenGLContext.java +++ b/src/net/java/games/jogl/impl/x11/X11OnscreenGLContext.java @@ -46,8 +46,6 @@ import net.java.games.jogl.impl.*; public class X11OnscreenGLContext extends X11GLContext { protected X11OnscreenGLDrawable drawable; - // Variables for pbuffer support - List pbuffersToInstantiate = new ArrayList(); public X11OnscreenGLContext(X11OnscreenGLDrawable drawable, GLContext shareWith) { @@ -55,24 +53,6 @@ public class X11OnscreenGLContext extends X11GLContext { this.drawable = drawable; } - public boolean canCreatePbufferContext() { - return false; - /* - return isExtensionAvailable("GL_ARB_pbuffer"); - */ - } - - public GLDrawableImpl createPbufferDrawable(GLCapabilities capabilities, - int initialWidth, - int initialHeight) { - throw new GLException("No longer supported"); - /* - X11PbufferGLDrawable buf = new X11PbufferGLDrawable(capabilities, initialWidth, initialHeight); - pbuffersToInstantiate.add(buf); - return buf; - */ - } - protected int makeCurrentImpl() throws GLException { try { int lockRes = drawable.lockSurface(); @@ -90,20 +70,6 @@ public class X11OnscreenGLContext extends X11GLContext { } } int ret = super.makeCurrentImpl(); - /* - if ((ret == CONTEXT_CURRENT) || - (ret == CONTEXT_CURRENT_NEW)) { - // Instantiate any pending pbuffers - while (!pbuffersToInstantiate.isEmpty()) { - X11PbufferGLDrawable buf = - (X11PbufferGLDrawable) pbuffersToInstantiate.remove(pbuffersToInstantiate.size() - 1); - buf.createPbuffer(getGL(), drawable.getDisplay()); - if (DEBUG) { - System.err.println(getThreadName() + ": created pbuffer " + buf); - } - } - } - */ return ret; } catch (RuntimeException e) { try { -- cgit v1.2.3