From 90020bad5f6964131ae7b3e54fc2c68ed4cfdf47 Mon Sep 17 00:00:00 2001 From: Kenneth Russel Date: Tue, 24 Jul 2007 23:10:47 +0000 Subject: Incorporated fix from Justin Couch about using the default screen for the current display for pbuffer rendering rather than screen "0" git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@1313 232f8b59-042b-4e1e-8c03-345bb8c30851 --- src/classes/com/sun/opengl/impl/x11/X11PbufferGLDrawable.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/classes/com/sun/opengl/impl/x11') diff --git a/src/classes/com/sun/opengl/impl/x11/X11PbufferGLDrawable.java b/src/classes/com/sun/opengl/impl/x11/X11PbufferGLDrawable.java index b03fdde03..4fdc0f80a 100644 --- a/src/classes/com/sun/opengl/impl/x11/X11PbufferGLDrawable.java +++ b/src/classes/com/sun/opengl/impl/x11/X11PbufferGLDrawable.java @@ -115,7 +115,7 @@ public class X11PbufferGLDrawable extends X11GLDrawable { throw new GLException("Render-to-texture-rectangle pbuffers not supported yet on X11"); } - int screen = 0; // FIXME: provide way to specify this? + int screen = GLX.DefaultScreen(display); int[] iattributes = X11GLDrawableFactory.glCapabilities2AttribList(capabilities, X11GLDrawableFactory.isMultisampleAvailable(), true, display, screen); -- cgit v1.2.3