aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java/games/jogl/impl/x11/X11OnscreenGLContext.java
diff options
context:
space:
mode:
authorKenneth Russel <[email protected]>2005-07-18 22:15:42 +0000
committerKenneth Russel <[email protected]>2005-07-18 22:15:42 +0000
commit8f5492988de9fddf61623b7274915c777ad3a97d (patch)
tree79528bb981dbaa88f2f970d555b2fb06b7f8335a /src/net/java/games/jogl/impl/x11/X11OnscreenGLContext.java
parent5e36587af91f43faff49f4ff61c40cf084bae298 (diff)
Moved support for instantiating GLPbuffers from X11OnscreenGLContext
to X11GLContextFactory. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/branches/JSR-231@327 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.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/net/java/games/jogl/impl/x11/X11OnscreenGLContext.java b/src/net/java/games/jogl/impl/x11/X11OnscreenGLContext.java
index 7a661e9e3..cc4375117 100644
--- a/src/net/java/games/jogl/impl/x11/X11OnscreenGLContext.java
+++ b/src/net/java/games/jogl/impl/x11/X11OnscreenGLContext.java
@@ -56,15 +56,21 @@ public class X11OnscreenGLContext extends X11GLContext {
}
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 {
@@ -84,6 +90,7 @@ public class X11OnscreenGLContext extends X11GLContext {
}
}
int ret = super.makeCurrentImpl();
+ /*
if ((ret == CONTEXT_CURRENT) ||
(ret == CONTEXT_CURRENT_NEW)) {
// Instantiate any pending pbuffers
@@ -96,6 +103,7 @@ public class X11OnscreenGLContext extends X11GLContext {
}
}
}
+ */
return ret;
} catch (RuntimeException e) {
try {