From b62d7b08212bdbae8d7755dafe4759dc61ace74a Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sat, 26 Nov 2011 15:50:55 +0100 Subject: MacOSXJAWTWindow: Also need to fix (onscreen:=false) of the encapsulated GraphicsConfiguration --- .../classes/jogamp/nativewindow/jawt/macosx/MacOSXJAWTWindow.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/nativewindow/classes/jogamp') diff --git a/src/nativewindow/classes/jogamp/nativewindow/jawt/macosx/MacOSXJAWTWindow.java b/src/nativewindow/classes/jogamp/nativewindow/jawt/macosx/MacOSXJAWTWindow.java index 11c21a68a..1370f0fca 100644 --- a/src/nativewindow/classes/jogamp/nativewindow/jawt/macosx/MacOSXJAWTWindow.java +++ b/src/nativewindow/classes/jogamp/nativewindow/jawt/macosx/MacOSXJAWTWindow.java @@ -51,6 +51,7 @@ import javax.media.nativewindow.NativeWindowException; import javax.media.nativewindow.SurfaceChangeable; import javax.media.nativewindow.util.Point; +import jogamp.nativewindow.MutableGraphicsConfiguration; import jogamp.nativewindow.jawt.JAWT; import jogamp.nativewindow.jawt.JAWTFactory; import jogamp.nativewindow.jawt.JAWTUtil; @@ -195,7 +196,10 @@ public class MacOSXJAWTWindow extends JAWTWindow implements SurfaceChangeable { Capabilities caps = (Capabilities) getPrivateGraphicsConfiguration().getChosenCapabilities().cloneMutable(); caps.setOnscreen(false); getPrivateGraphicsConfiguration().setChosenCapabilities(caps); - } + caps = (Capabilities) getGraphicsConfiguration().getChosenCapabilities().cloneMutable(); + caps.setOnscreen(false); + ((MutableGraphicsConfiguration)getGraphicsConfiguration()).setChosenCapabilities(caps); + } if(0 == rootSurfaceLayerHandle) { rootSurfaceLayerHandle = OSXUtil.CreateCALayer(); if(0 == rootSurfaceLayerHandle) { -- cgit v1.2.3