aboutsummaryrefslogtreecommitdiffstats
path: root/src/classes/com
diff options
context:
space:
mode:
Diffstat (limited to 'src/classes/com')
-rw-r--r--src/classes/com/sun/opengl/impl/glu/registry/Registry.java10
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;
}
}