summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt.opengl
diff options
context:
space:
mode:
authorBilly Biggs <bbiggs>2005-06-27 22:34:49 +0000
committerBilly Biggs <bbiggs>2005-06-27 22:34:49 +0000
commita6793950af6d017aab139136a30b4f9fd754599e (patch)
treeaefe670ab609a12c44a96b06838c59a27576545c /bundles/org.eclipse.swt.opengl
parent2d2a769e9d36177e2f5436ecc4706f5e95e3bbbe (diff)
downloadeclipse.platform.swt-a6793950af6d017aab139136a30b4f9fd754599e.tar.gz
eclipse.platform.swt-a6793950af6d017aab139136a30b4f9fd754599e.tar.xz
eclipse.platform.swt-a6793950af6d017aab139136a30b4f9fd754599e.zip
Use direct rendering if available, ask for a visual with a stencil buffer.oldImpl
Diffstat (limited to 'bundles/org.eclipse.swt.opengl')
-rw-r--r--bundles/org.eclipse.swt.opengl/gtk/org/eclipse/swt/opengl/GLContext.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt.opengl/gtk/org/eclipse/swt/opengl/GLContext.java b/bundles/org.eclipse.swt.opengl/gtk/org/eclipse/swt/opengl/GLContext.java
index 9dc007054d..339d5255bb 100644
--- a/bundles/org.eclipse.swt.opengl/gtk/org/eclipse/swt/opengl/GLContext.java
+++ b/bundles/org.eclipse.swt.opengl/gtk/org/eclipse/swt/opengl/GLContext.java
@@ -67,6 +67,10 @@ public class GLContext {
0,
XGL.GLX_RGBA,
XGL.GLX_DOUBLEBUFFER,
+ XGL.GLX_STENCIL_BUFFER_BIT,
+ 1,
+// XGL.GLX_STENCIL_SIZE,
+// 8,
// XGL.GLX_DEPTH_SIZE,
// depth,
0
@@ -76,7 +80,7 @@ public class GLContext {
XVisualInfo info = new XVisualInfo ();
XGL.memmove (info, infoPtr, XVisualInfo.sizeof);
XGTK.XFree (infoPtr);
- handle = XGL.glXCreateContext (xDisplay, info, 0, false);
+ handle = XGL.glXCreateContext (xDisplay, info, 0, true);
if (handle == 0) SWT.error (SWT.ERROR_NO_HANDLES);
}