diff options
author | Sven Gothel <[email protected]> | 2011-09-01 16:16:11 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2011-09-01 16:16:11 +0200 |
commit | 59b18566d4fd19153dcd667bed44a1660762a5f9 (patch) | |
tree | 835be0ad5c749ecea64fc54c05a28b690e8fd0ce /src/test/com/jogamp | |
parent | 54fbda81866b732719c2e211727c893a4196fd6e (diff) |
Test PIXMAP/BITMAP: Can't expect GL2/ES2 - might be SW OpenGL
Diffstat (limited to 'src/test/com/jogamp')
-rw-r--r-- | src/test/com/jogamp/opengl/test/junit/jogl/offscreen/TestOffscreen02BitmapNEWT.java | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/test/com/jogamp/opengl/test/junit/jogl/offscreen/TestOffscreen02BitmapNEWT.java b/src/test/com/jogamp/opengl/test/junit/jogl/offscreen/TestOffscreen02BitmapNEWT.java index 55675f2fc..1b43940cd 100644 --- a/src/test/com/jogamp/opengl/test/junit/jogl/offscreen/TestOffscreen02BitmapNEWT.java +++ b/src/test/com/jogamp/opengl/test/junit/jogl/offscreen/TestOffscreen02BitmapNEWT.java @@ -46,9 +46,13 @@ import javax.media.opengl.*; import javax.media.nativewindow.*; import com.jogamp.opengl.test.junit.util.UITestCase; -import com.jogamp.opengl.test.junit.jogl.demos.es2.RedSquareES2; +import com.jogamp.opengl.test.junit.jogl.demos.es1.RedSquareES1; import java.io.IOException; +/** + * Using ES1 GL demo, since pixmap might not be hw accelerated, + * hence it is possible to not have GLSL. + */ public class TestOffscreen02BitmapNEWT extends UITestCase { static GLProfile glpDefault; static GLDrawableFactory glDrawableFactory; @@ -97,7 +101,7 @@ public class TestOffscreen02BitmapNEWT extends UITestCase { Assert.assertNotNull(glWindow); glWindow.setVisible(true); - GLEventListener demo = new RedSquareES2(); + GLEventListener demo = new RedSquareES1(); WindowUtilNEWT.setDemoFields(demo, window, glWindow, false); glWindow.addGLEventListener(demo); @@ -144,7 +148,7 @@ public class TestOffscreen02BitmapNEWT extends UITestCase { MouseListener ml=null; SurfaceUpdatedListener ul=null; - GLEventListener demo = new RedSquareES2(); + GLEventListener demo = new RedSquareES1(); Assert.assertNotNull(demo); WindowUtilNEWT.run(glWindow, demo, null, wl, ml, ul, 2, true /*snapshot*/, false /*debug*/); |