From bb251c6e1089da4a247350371fff425abf093e1e Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Wed, 28 Apr 2010 01:36:08 +0200 Subject: Oops .. broke the tests, adding 'else' value ; fix assertion in test --- make/build-common.xml | 2 +- src/junit/com/jogamp/test/junit/jogl/drawable/TestDrawable01NEWT.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/make/build-common.xml b/make/build-common.xml index bbc99b589..be323398e 100644 --- a/make/build-common.xml +++ b/make/build-common.xml @@ -153,7 +153,7 @@ - + diff --git a/src/junit/com/jogamp/test/junit/jogl/drawable/TestDrawable01NEWT.java b/src/junit/com/jogamp/test/junit/jogl/drawable/TestDrawable01NEWT.java index 49dddc701..ff4186b0c 100755 --- a/src/junit/com/jogamp/test/junit/jogl/drawable/TestDrawable01NEWT.java +++ b/src/junit/com/jogamp/test/junit/jogl/drawable/TestDrawable01NEWT.java @@ -78,7 +78,7 @@ public class TestDrawable01NEWT { void createWindow(boolean onscreen, boolean pbuffer, boolean undecorated) { caps.setOnscreen(onscreen); caps.setPBuffer(!onscreen && pbuffer); - caps.setDoubleBuffered(!onscreen); + caps.setDoubleBuffered(onscreen); // System.out.println("Requested: "+caps); // @@ -107,7 +107,7 @@ public class TestDrawable01NEWT { Assert.assertTrue(glCaps.getRedBits()>5); Assert.assertTrue(glCaps.isOnscreen()==onscreen); Assert.assertTrue(onscreen || !pbuffer || glCaps.isPBuffer()); // pass if onscreen, or !pbuffer req. or have pbuffer - Assert.assertTrue(glCaps.getDoubleBuffered()==!onscreen); + Assert.assertTrue(glCaps.getDoubleBuffered()==onscreen); Assert.assertTrue(glCaps.getDepthBits()>4); drawable = factory.createGLDrawable(window); -- cgit v1.2.3