diff options
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; |