From b69eeed9be76fd74da610da089b730a7cee592c9 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sat, 22 Nov 2008 19:02:52 +0000 Subject: 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 --- src/classes/com/sun/opengl/impl/glu/registry/Registry.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/classes') 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; } } -- cgit v1.2.3