From 012460d1fdef767afdc454fb09ba50f056d26e20 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sun, 4 Oct 2009 13:20:53 -0700 Subject: Fix Config: Set doublebuffer:=false if offscreen; NEWT: Fix KDWindow. --- .../com/sun/opengl/impl/macosx/cgl/MacOSXCGLDrawableFactory.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/jogl/classes/com/sun/opengl/impl/macosx') diff --git a/src/jogl/classes/com/sun/opengl/impl/macosx/cgl/MacOSXCGLDrawableFactory.java b/src/jogl/classes/com/sun/opengl/impl/macosx/cgl/MacOSXCGLDrawableFactory.java index f398ed8a0..ee1ba732d 100644 --- a/src/jogl/classes/com/sun/opengl/impl/macosx/cgl/MacOSXCGLDrawableFactory.java +++ b/src/jogl/classes/com/sun/opengl/impl/macosx/cgl/MacOSXCGLDrawableFactory.java @@ -74,6 +74,7 @@ public class MacOSXCGLDrawableFactory extends GLDrawableFactoryImpl implements D int width, int height) { AbstractGraphicsScreen aScreen = DefaultGraphicsScreen.createDefault(); + capabilities.setDoubleBuffered(false); // FIXME capabilities.setOnscreen(false); capabilities.setPBuffer(false); return new MacOSXOffscreenCGLDrawable(this, aScreen, capabilities, chooser, width, height); @@ -88,6 +89,7 @@ public class MacOSXCGLDrawableFactory extends GLDrawableFactoryImpl implements D final int initialWidth, final int initialHeight) { AbstractGraphicsScreen screen = DefaultGraphicsScreen.createDefault(); + capabilities.setDoubleBuffered(false); // FIXME capabilities.setOnscreen(false); capabilities.setPBuffer(true); return new MacOSXPbufferCGLDrawable(this, screen, capabilities, chooser, -- cgit v1.2.3