diff options
author | Kenneth Russel <[email protected]> | 2007-07-24 23:10:47 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2007-07-24 23:10:47 +0000 |
commit | 90020bad5f6964131ae7b3e54fc2c68ed4cfdf47 (patch) | |
tree | 12ffb82094acc5ee30ba326c57b823d106812236 /src/classes/com/sun | |
parent | 6dd02dc6e2a84598e59639433d9199e47c5c19ae (diff) |
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
Diffstat (limited to 'src/classes/com/sun')
-rw-r--r-- | src/classes/com/sun/opengl/impl/x11/X11PbufferGLDrawable.java | 2 |
1 files changed, 1 insertions, 1 deletions
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); |