diff options
author | Sven Gothel <[email protected]> | 2008-11-22 19:02:52 +0000 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2008-11-22 19:02:52 +0000 |
commit | b69eeed9be76fd74da610da089b730a7cee592c9 (patch) | |
tree | 082a09e53bb5159eb15d717caa940dcd51108688 /src/classes | |
parent | 34de8784cdc2d802ec30a59ec7e722b1fe855137 (diff) |
Temp. hack to un-break CVM build. Check my comments inline
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/branches/JOGL_2_SANDBOX@1800 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'src/classes')
-rw-r--r-- | src/classes/com/sun/opengl/impl/glu/registry/Registry.java | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/classes/com/sun/opengl/impl/glu/registry/Registry.java b/src/classes/com/sun/opengl/impl/glu/registry/Registry.java index f64de3a8c..cbba638a4 100644 --- a/src/classes/com/sun/opengl/impl/glu/registry/Registry.java +++ b/src/classes/com/sun/opengl/impl/glu/registry/Registry.java @@ -44,7 +44,7 @@ package com.sun.opengl.impl.glu.registry; -import java.util.regex.*; +// breaks CVM: import java.util.regex.*; import javax.media.opengl.glu.GLU; /** @@ -70,6 +70,12 @@ public class Registry { if( extName == null || extString == null ) { return( false ); } - return( Pattern.compile( extName + "\\b" ).matcher( extString ).find() ); + // breaks CVM: return( Pattern.compile( extName + "\\b" ).matcher( extString ).find() ); + // Use gl.isFunctionAvailable() .. or find an alternative. + // I don't recommend the extension name queries anyways, since they are kind of buggy. + // But available function sets allows a better 'clue' of what is supported and what not - IMHO. + // However .. I have commented the regex stuff out, since it breaks CVM compilation, + // due to it's reference in glu-base (latest change ..) + return false; } } |