From 33896a42dcec55d52030fae33e64fa966c67f91d Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sun, 16 Sep 2012 08:26:58 +0200 Subject: Disable double-buffer mode when offscreen-bitmap is chosen, remove dbl-buff bitmap test --- src/jogl/classes/jogamp/opengl/GLGraphicsConfigurationUtil.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/jogl/classes/jogamp/opengl') diff --git a/src/jogl/classes/jogamp/opengl/GLGraphicsConfigurationUtil.java b/src/jogl/classes/jogamp/opengl/GLGraphicsConfigurationUtil.java index 79f96b64a..13c95b0dd 100644 --- a/src/jogl/classes/jogamp/opengl/GLGraphicsConfigurationUtil.java +++ b/src/jogl/classes/jogamp/opengl/GLGraphicsConfigurationUtil.java @@ -179,7 +179,8 @@ public class GLGraphicsConfigurationUtil { if( capsRequested.isOnscreen() || useFBO != capsRequested.isFBO() || usePbuffer != capsRequested.isPBuffer() || - useBitmap != capsRequested.isBitmap() ) + useBitmap != capsRequested.isBitmap() || + useBitmap && capsRequested.getDoubleBuffered() ) { // fix caps .. final GLCapabilities caps2 = (GLCapabilities) capsRequested.cloneMutable(); @@ -187,6 +188,9 @@ public class GLGraphicsConfigurationUtil { caps2.setFBO( useFBO ); caps2.setPBuffer( usePbuffer ); caps2.setBitmap( useBitmap ); + if( useBitmap ) { + caps2.setDoubleBuffered(false); + } return caps2; } return capsRequested; -- cgit v1.2.3