summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2014-09-02 02:20:52 +0200
committerSven Gothel <[email protected]>2014-09-02 02:20:52 +0200
commit278a884e459b1180a947ff24edecdef1a7fc6cb7 (patch)
tree69b8c6dc3e22ead90b46256d65a4e0bf66fdb503
parent79ac86efa3f0b114ce456e7f2a8ef341932fd17c (diff)
Bug 1052 - OpenGL ES 3.0 Mesa 10.1.3 Caught GLException: Not a GL4ES3 implementation - Part 2/2
- TestGLProfile01NEWT: Allow ctx.isGLES3Compatible() and hence GL4ES3 on GL3bc and GL3 - GLProfile: Remove GL4ES3 mapping using GL3bc and GL3, only GL4bc, GL4 and GLES3 are allowed in static mapping.
-rw-r--r--src/jogl/classes/javax/media/opengl/GLProfile.java10
-rw-r--r--src/test/com/jogamp/opengl/test/junit/jogl/acore/TestGLProfile01NEWT.java29
2 files changed, 20 insertions, 19 deletions
diff --git a/src/jogl/classes/javax/media/opengl/GLProfile.java b/src/jogl/classes/javax/media/opengl/GLProfile.java
index d39d0f11a..bc5873c1a 100644
--- a/src/jogl/classes/javax/media/opengl/GLProfile.java
+++ b/src/jogl/classes/javax/media/opengl/GLProfile.java
@@ -2123,16 +2123,6 @@ public class GLProfile {
return GL4bc;
}
}
- if(GLContext.isGL3Available(device, isHardwareRasterizer)) {
- if(!gles3HWAvailable || isHardwareRasterizer[0]) {
- return GL3;
- }
- }
- if( desktopCtxUndef || GLContext.isGL3bcAvailable(device, isHardwareRasterizer)) {
- if(!gles3HWAvailable || isHardwareRasterizer[0]) {
- return GL3bc;
- }
- }
}
if(gles3Available) {
isHardwareRasterizer[0] = es3HardwareRasterizer[0];
diff --git a/src/test/com/jogamp/opengl/test/junit/jogl/acore/TestGLProfile01NEWT.java b/src/test/com/jogamp/opengl/test/junit/jogl/acore/TestGLProfile01NEWT.java
index 3461ff650..3262ff996 100644
--- a/src/test/com/jogamp/opengl/test/junit/jogl/acore/TestGLProfile01NEWT.java
+++ b/src/test/com/jogamp/opengl/test/junit/jogl/acore/TestGLProfile01NEWT.java
@@ -217,7 +217,11 @@ public class TestGLProfile01NEWT extends UITestCase {
Assert.assertTrue(gl.isGL3());
Assert.assertTrue(gl.isGL2());
Assert.assertTrue(gl.isGL2GL3());
- Assert.assertFalse(gl.isGL4ES3());
+ if( gles3CompatAvail ) { // possible w/ GL3 implementations!
+ Assert.assertTrue(gl.isGL4ES3());
+ } else {
+ Assert.assertFalse(gl.isGL4ES3());
+ }
Assert.assertTrue(gl.isGL3ES3());
Assert.assertTrue(gl.isGL2ES2());
Assert.assertTrue(gl.isGL2ES1());
@@ -231,9 +235,12 @@ public class TestGLProfile01NEWT extends UITestCase {
Assert.assertTrue(ctx.isGL3());
Assert.assertTrue(ctx.isGL2());
Assert.assertTrue(ctx.isGL2GL3());
- Assert.assertFalse(ctx.isGL4ES3());
+ if( gles3CompatAvail ) { // possible w/ GL3 implementations!
+ Assert.assertTrue(ctx.isGL4ES3());
+ } else {
+ Assert.assertFalse(ctx.isGL4ES3());
+ }
Assert.assertTrue(ctx.isGL3ES3());
- Assert.assertFalse(gles3CompatAvail);
Assert.assertTrue(ctx.isGL2ES2());
Assert.assertTrue(ctx.isGL2ES1());
Assert.assertFalse(ctx.isGLES3());
@@ -266,7 +273,11 @@ public class TestGLProfile01NEWT extends UITestCase {
Assert.assertTrue(gl.isGL3());
Assert.assertFalse(gl.isGL2());
Assert.assertTrue(gl.isGL2GL3());
- Assert.assertFalse(gl.isGL4ES3());
+ if( gles3CompatAvail ) { // possible w/ GL3 implementations!
+ Assert.assertTrue(gl.isGL4ES3());
+ } else {
+ Assert.assertFalse(gl.isGL4ES3());
+ }
Assert.assertTrue(gl.isGL3ES3());
Assert.assertTrue(gl.isGL2ES2());
Assert.assertFalse(gl.isGL2ES1());
@@ -280,9 +291,12 @@ public class TestGLProfile01NEWT extends UITestCase {
Assert.assertTrue(ctx.isGL3());
Assert.assertFalse(ctx.isGL2());
Assert.assertTrue(ctx.isGL2GL3());
- Assert.assertFalse(ctx.isGL4ES3());
+ if( gles3CompatAvail ) { // possible w/ GL3 implementations!
+ Assert.assertTrue(ctx.isGL4ES3());
+ } else {
+ Assert.assertFalse(ctx.isGL4ES3());
+ }
Assert.assertTrue(ctx.isGL3ES3());
- Assert.assertFalse(gles3CompatAvail);
Assert.assertTrue(ctx.isGL2ES2());
Assert.assertFalse(ctx.isGL2ES1());
Assert.assertFalse(ctx.isGLES3());
@@ -366,7 +380,6 @@ public class TestGLProfile01NEWT extends UITestCase {
Assert.assertFalse(gl.isGL2GL3());
Assert.assertTrue(gl.isGL4ES3());
Assert.assertTrue(gl.isGL3ES3());
- Assert.assertTrue(gles3CompatAvail);
Assert.assertTrue(gl.isGL2ES2());
Assert.assertFalse(gl.isGL2ES1());
Assert.assertTrue(gl.isGLES3());
@@ -416,7 +429,6 @@ public class TestGLProfile01NEWT extends UITestCase {
Assert.assertFalse(gl.isGL2GL3());
Assert.assertFalse(gl.isGL4ES3());
Assert.assertFalse(gl.isGL3ES3());
- Assert.assertFalse(gles3CompatAvail);
Assert.assertTrue(gl.isGL2ES2());
Assert.assertFalse(gl.isGL2ES1());
Assert.assertFalse(gl.isGLES3());
@@ -466,7 +478,6 @@ public class TestGLProfile01NEWT extends UITestCase {
Assert.assertFalse(gl.isGL2GL3());
Assert.assertFalse(gl.isGL4ES3());
Assert.assertFalse(gl.isGL3ES3());
- Assert.assertFalse(gles3CompatAvail);
Assert.assertFalse(gl.isGL2ES2());
Assert.assertTrue(gl.isGL2ES1());
Assert.assertFalse(gl.isGLES3());