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/macosx/MacOSXOnscreenGLContext.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/macosx/MacOSXOnscreenGLContext.java')
-rw-r--r-- | src/net/java/games/jogl/impl/macosx/MacOSXOnscreenGLContext.java | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/net/java/games/jogl/impl/macosx/MacOSXOnscreenGLContext.java b/src/net/java/games/jogl/impl/macosx/MacOSXOnscreenGLContext.java index 6dd2c4b4a..6accb37c0 100644 --- a/src/net/java/games/jogl/impl/macosx/MacOSXOnscreenGLContext.java +++ b/src/net/java/games/jogl/impl/macosx/MacOSXOnscreenGLContext.java @@ -46,8 +46,6 @@ import net.java.games.jogl.impl.*; public class MacOSXOnscreenGLContext extends MacOSXGLContext { protected MacOSXOnscreenGLDrawable drawable; - // Variables for pbuffer support - List pbuffersToInstantiate = new ArrayList(); public MacOSXOnscreenGLContext(MacOSXOnscreenGLDrawable drawable, GLContext shareWith) { @@ -55,18 +53,6 @@ public class MacOSXOnscreenGLContext extends MacOSXGLContext { this.drawable = drawable; } - public boolean canCreatePbufferContext() { - return true; - } - - public GLDrawableImpl createPbufferDrawable(GLCapabilities capabilities, - int initialWidth, - int initialHeight) { - MacOSXPbufferGLDrawable buf = new MacOSXPbufferGLDrawable(capabilities, initialWidth, initialHeight); - pbuffersToInstantiate.add(buf); - return buf; - } - protected int makeCurrentImpl() throws GLException { try { int lockRes = drawable.lockSurface(); @@ -87,12 +73,6 @@ public class MacOSXOnscreenGLContext extends MacOSXGLContext { // of an ancestor, but this also wasn't sufficient and left garbage on the // screen in some situations. CGL.updateContext(nsContext, drawable.getView()); - // Instantiate any pending pbuffers - while (!pbuffersToInstantiate.isEmpty()) { - MacOSXPbufferGLDrawable buf = - (MacOSXPbufferGLDrawable) pbuffersToInstantiate.remove(pbuffersToInstantiate.size() - 1); - buf.createPbuffer(getGL()); - } } else { // View might not have been ready drawable.unlockSurface(); |