diff options
author | Kenneth Russel <[email protected]> | 2006-01-24 22:47:28 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2006-01-24 22:47:28 +0000 |
commit | 574dbd7a55294fd650271816c969a3158bdcadea (patch) | |
tree | 16144f1db431e962d0630dcc8bda960cbec3702a /src/classes/com/sun/opengl | |
parent | 9a7761a73913084fbc2c093a0ddaa6c79fd44a54 (diff) |
Fixed Issue 195: Pbuffer support broken on X11 platforms
It turns out that pbuffer support wasn't completely broken, but the
GLX_DOUBLEBUFFER bit wasn't being set properly for single-buffered
windows and pbuffers, which mattered in particular for the JGears demo
(and the GLJPanel) which read back the contents of the front buffer.
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@564 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'src/classes/com/sun/opengl')
-rw-r--r-- | src/classes/com/sun/opengl/impl/x11/X11GLDrawableFactory.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/classes/com/sun/opengl/impl/x11/X11GLDrawableFactory.java b/src/classes/com/sun/opengl/impl/x11/X11GLDrawableFactory.java index 4b8840e59..f717b5a87 100644 --- a/src/classes/com/sun/opengl/impl/x11/X11GLDrawableFactory.java +++ b/src/classes/com/sun/opengl/impl/x11/X11GLDrawableFactory.java @@ -331,8 +331,11 @@ public class X11GLDrawableFactory extends GLDrawableFactoryImpl { } else { res[idx++] = GLX.GLX_RGBA; } + res[idx++] = GLX.GLX_DOUBLEBUFFER; if (caps.getDoubleBuffered()) { - res[idx++] = GLX.GLX_DOUBLEBUFFER; + res[idx++] = GL.GL_TRUE; + } else { + res[idx++] = GL.GL_FALSE; } if (caps.getStereo()) { res[idx++] = GLX.GLX_STEREO; |