diff options
author | Kenneth Russel <[email protected]> | 2005-07-18 23:15:37 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2005-07-18 23:15:37 +0000 |
commit | 35435c313ba527c9bea35a14f72492d2f80a9c84 (patch) | |
tree | ae7f1ed0a184d990292f0e295fa943c0139868a0 /src/net/java/games/jogl/impl/x11/X11OnscreenGLContext.java | |
parent | 8f5492988de9fddf61623b7274915c777ad3a97d (diff) |
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
Diffstat (limited to 'src/net/java/games/jogl/impl/x11/X11OnscreenGLContext.java')
-rw-r--r-- | src/net/java/games/jogl/impl/x11/X11OnscreenGLContext.java | 34 |
1 files changed, 0 insertions, 34 deletions
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 { |