From 8f5492988de9fddf61623b7274915c777ad3a97d Mon Sep 17 00:00:00 2001 From: Kenneth Russel Date: Mon, 18 Jul 2005 22:15:42 +0000 Subject: 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 --- src/net/java/games/jogl/impl/windows/WindowsGLContextFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/net/java/games/jogl/impl/windows') diff --git a/src/net/java/games/jogl/impl/windows/WindowsGLContextFactory.java b/src/net/java/games/jogl/impl/windows/WindowsGLContextFactory.java index 1ea4c8b95..112afd2e4 100644 --- a/src/net/java/games/jogl/impl/windows/WindowsGLContextFactory.java +++ b/src/net/java/games/jogl/impl/windows/WindowsGLContextFactory.java @@ -179,7 +179,7 @@ public class WindowsGLContextFactory extends GLContextFactory { final int initialWidth, final int initialHeight, final GLContext shareWith) { - if (!canCreateGLPbuffer) { + if (!canCreateGLPbuffer(capabilities, initialWidth, initialHeight)) { throw new GLException("Pbuffer support not available with current graphics card"); } final List returnList = new ArrayList(); -- cgit v1.2.3