summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT OpenGL
diff options
context:
space:
mode:
authorSilenio Quarti <Silenio_Quarti@ca.ibm.com>2011-09-07 14:18:44 -0400
committerSilenio Quarti <Silenio_Quarti@ca.ibm.com>2011-09-07 14:18:44 -0400
commit4222a621d2928b548c2e30cc0978e442beedb1d5 (patch)
treea1c67627e9c0255f6985e358bfb9c500f3a837c8 /bundles/org.eclipse.swt/Eclipse SWT OpenGL
parent4f704108b0528d9c77c54499cc20715a8573c665 (diff)
downloadeclipse.platform.swt-4222a621d2928b548c2e30cc0978e442beedb1d5.tar.gz
eclipse.platform.swt-4222a621d2928b548c2e30cc0978e442beedb1d5.tar.xz
eclipse.platform.swt-4222a621d2928b548c2e30cc0978e442beedb1d5.zip
Bug 343331 - [Mac] GLCanvas draws on top of fast views
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT OpenGL')
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT OpenGL/cocoa/org/eclipse/swt/opengl/GLCanvas.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT OpenGL/cocoa/org/eclipse/swt/opengl/GLCanvas.java b/bundles/org.eclipse.swt/Eclipse SWT OpenGL/cocoa/org/eclipse/swt/opengl/GLCanvas.java
index 0f731454dd..f30a7df4a1 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT OpenGL/cocoa/org/eclipse/swt/opengl/GLCanvas.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT OpenGL/cocoa/org/eclipse/swt/opengl/GLCanvas.java
@@ -117,6 +117,7 @@ public GLCanvas (Composite parent, int style, GLData data) {
SWT.error (SWT.ERROR_UNSUPPORTED_DEPTH);
}
context = context.initWithFormat(pixelFormat, ctx);
+ context.setValues(new int[]{-1}, OS.NSOpenGLCPSurfaceOrder);
setData(GLCONTEXT_KEY, context);
NSNotificationCenter.defaultCenter().addObserver(view, OS.sel_updateOpenGLContext_, OS.NSViewGlobalFrameDidChangeNotification, view);