aboutsummaryrefslogtreecommitdiffstats
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
parent5c620b2878bd1d35331393f8695af18baeab9874 (diff)
Disable double-buffer mode when offscreen-bitmap is chosen, remove dbl-buff bitmap test
-rw-r--r--src/jogl/classes/jogamp/opengl/GLGraphicsConfigurationUtil.java6
-rw-r--r--src/test/com/jogamp/opengl/test/junit/jogl/acore/TestGLAutoDrawableDelegateOnOffscrnCapsNEWT.java9
-rw-r--r--src/test/com/jogamp/opengl/test/junit/jogl/acore/TestGLAutoDrawableFactoryOffscrnCapsNEWT.java9
-rw-r--r--src/test/com/jogamp/opengl/test/junit/jogl/acore/TestGLAutoDrawableGLWindowOnOffscrnCapsNEWT.java9
4 files changed, 5 insertions, 28 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;
diff --git a/src/test/com/jogamp/opengl/test/junit/jogl/acore/TestGLAutoDrawableDelegateOnOffscrnCapsNEWT.java b/src/test/com/jogamp/opengl/test/junit/jogl/acore/TestGLAutoDrawableDelegateOnOffscrnCapsNEWT.java
index bcd777ef2..4628a5a58 100644
--- a/src/test/com/jogamp/opengl/test/junit/jogl/acore/TestGLAutoDrawableDelegateOnOffscrnCapsNEWT.java
+++ b/src/test/com/jogamp/opengl/test/junit/jogl/acore/TestGLAutoDrawableDelegateOnOffscrnCapsNEWT.java
@@ -286,15 +286,6 @@ public class TestGLAutoDrawableDelegateOnOffscrnCapsNEWT extends UITestCase {
}
@Test
- public void testGL2OffScreenBitmapDblBuf() throws InterruptedException {
- final GLCapabilities reqGLCaps = getCaps(GLProfile.GL2);
- if(null == reqGLCaps) return;
- reqGLCaps.setOnscreen(false);
- reqGLCaps.setBitmap(true);
- doTest(reqGLCaps, new Gears(1));
- }
-
- @Test
public void testGL2OffScreenBitmapSglBuf() throws InterruptedException {
final GLCapabilities reqGLCaps = getCaps(GLProfile.GL2);
if(null == reqGLCaps) return;
diff --git a/src/test/com/jogamp/opengl/test/junit/jogl/acore/TestGLAutoDrawableFactoryOffscrnCapsNEWT.java b/src/test/com/jogamp/opengl/test/junit/jogl/acore/TestGLAutoDrawableFactoryOffscrnCapsNEWT.java
index 544d74aa5..d318446d2 100644
--- a/src/test/com/jogamp/opengl/test/junit/jogl/acore/TestGLAutoDrawableFactoryOffscrnCapsNEWT.java
+++ b/src/test/com/jogamp/opengl/test/junit/jogl/acore/TestGLAutoDrawableFactoryOffscrnCapsNEWT.java
@@ -234,15 +234,6 @@ public class TestGLAutoDrawableFactoryOffscrnCapsNEWT extends UITestCase {
}
@Test
- public void testGL2OffScreenBitmapDblBuf() throws InterruptedException {
- final GLCapabilities reqGLCaps = getCaps(GLProfile.GL2);
- if(null == reqGLCaps) return;
- reqGLCaps.setOnscreen(false);
- reqGLCaps.setBitmap(true);
- doTest(reqGLCaps, new Gears(1));
- }
-
- @Test
public void testGL2OffScreenBitmapSglBuf() throws InterruptedException {
final GLCapabilities reqGLCaps = getCaps(GLProfile.GL2);
if(null == reqGLCaps) return;
diff --git a/src/test/com/jogamp/opengl/test/junit/jogl/acore/TestGLAutoDrawableGLWindowOnOffscrnCapsNEWT.java b/src/test/com/jogamp/opengl/test/junit/jogl/acore/TestGLAutoDrawableGLWindowOnOffscrnCapsNEWT.java
index 37ec44566..145078629 100644
--- a/src/test/com/jogamp/opengl/test/junit/jogl/acore/TestGLAutoDrawableGLWindowOnOffscrnCapsNEWT.java
+++ b/src/test/com/jogamp/opengl/test/junit/jogl/acore/TestGLAutoDrawableGLWindowOnOffscrnCapsNEWT.java
@@ -253,15 +253,6 @@ public class TestGLAutoDrawableGLWindowOnOffscrnCapsNEWT extends UITestCase {
}
@Test
- public void testGL2OffScreenBitmapDblBuf() throws InterruptedException {
- final GLCapabilities reqGLCaps = getCaps(GLProfile.GL2);
- if(null == reqGLCaps) return;
- reqGLCaps.setOnscreen(false);
- reqGLCaps.setBitmap(true);
- doTest(reqGLCaps, new Gears(1));
- }
-
- @Test
public void testGL2OffScreenBitmapSglBuf() throws InterruptedException {
final GLCapabilities reqGLCaps = getCaps(GLProfile.GL2);
if(null == reqGLCaps) return;