diff options
author | Kenneth Russel <[email protected]> | 2008-07-31 03:08:44 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2008-07-31 03:08:44 +0000 |
commit | 07a44e1d67b4f0ea2efb68c888cd8c6e1f7d2632 (patch) | |
tree | 26d15613f76f7c4f63ae3fd589045a52eb03eccf /src/classes/javax/media | |
parent | fda288da7746aefc3c9380aa63e02ad6da42ba5b (diff) |
Fixed loading of GLES and EGL libraries, and error reporting when none
available. Fixed building with -Djogl.cdcfp, in particular nested
building of gluegen. Took out call to SHFullScreen, which doesn't seem
to be available on the NVidia APX 2500 any more. Fixed #includes in
InternalBufferUtils.c.
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/branches/JOGL_2_SANDBOX@1738 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'src/classes/javax/media')
-rw-r--r-- | src/classes/javax/media/opengl/GLProfile.java | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/classes/javax/media/opengl/GLProfile.java b/src/classes/javax/media/opengl/GLProfile.java index bc9709341..3dda6aff8 100644 --- a/src/classes/javax/media/opengl/GLProfile.java +++ b/src/classes/javax/media/opengl/GLProfile.java @@ -72,7 +72,7 @@ public class GLProfile { } } catch (Throwable e) { System.out.println("Profile: "+profile+" not available."); - System.out.println("\t"+e); + e.printStackTrace(); profile=null; } } @@ -97,7 +97,15 @@ public class GLProfile { setProfile(profiles[i]); } if(null==profile) { - throw new GLException("Profiles "+profiles+" not available"); + StringBuffer msg = new StringBuffer(); + msg.append("["); + for (int i = 0; i < profiles.length; i++) { + if (i > 0) + msg.append(", "); + msg.append(profiles[i]); + } + msg.append("]"); + throw new GLException("Profiles "+msg.toString()+" not available"); } } |