summaryrefslogtreecommitdiffstats
path: root/src/jogl/classes
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2012-09-16 08:26:58 +0200
committerSven Gothel <[email protected]>2012-09-16 08:26:58 +0200
commit33896a42dcec55d52030fae33e64fa966c67f91d (patch)
tree4fdbfb98fb86b66fcf5a74f1e31079fc4035b53b /src/jogl/classes
parent5c620b2878bd1d35331393f8695af18baeab9874 (diff)
Disable double-buffer mode when offscreen-bitmap is chosen, remove dbl-buff bitmap test
Diffstat (limited to 'src/jogl/classes')
-rw-r--r--src/jogl/classes/jogamp/opengl/GLGraphicsConfigurationUtil.java6
1 files changed, 5 insertions, 1 deletions
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;