diff options
Diffstat (limited to 'src/java/com/sun/gluegen/opengl/GLConfiguration.java')
-rwxr-xr-x | src/java/com/sun/gluegen/opengl/GLConfiguration.java | 34 |
1 files changed, 23 insertions, 11 deletions
diff --git a/src/java/com/sun/gluegen/opengl/GLConfiguration.java b/src/java/com/sun/gluegen/opengl/GLConfiguration.java index d9f35ba..1d2e08a 100755 --- a/src/java/com/sun/gluegen/opengl/GLConfiguration.java +++ b/src/java/com/sun/gluegen/opengl/GLConfiguration.java @@ -186,23 +186,35 @@ public class GLConfiguration extends ProcAddressConfiguration { } } - public boolean shouldIgnore(String symbol) { - return shouldIgnore(symbol, false); - } - - public boolean shouldIgnore(String symbol, boolean skipExtensionCheck) { - // Check ignored extensions based on our knowledge of the static GL info - if (!skipExtensionCheck && glInfo != null) { + protected boolean shouldIgnoreExtension(String symbol, boolean criteria) { + if (criteria && glInfo != null) { String extension = glInfo.getExtension(symbol); if (extension != null && ignoredExtensions.contains(extension)) { - // System.err.println("GL Ignore: "+symbol+" within extension "+extension); - // dumpIgnores(); - return true; + // System.err.println("GL Ignore: "+symbol+" within extension "+extension); + // Throwable t = new Throwable("XXX"); + // t.printStackTrace(); + // dumpIgnores(); + return true; } } + return false; + } + + public boolean shouldIgnoreInInterface(String symbol) { + return shouldIgnoreInInterface(symbol, true); + } + + public boolean shouldIgnoreInInterface(String symbol, boolean checkEXT) { + return shouldIgnoreExtension(symbol, checkEXT) || super.shouldIgnoreInInterface(symbol); + } + + public boolean shouldIgnoreInImpl(String symbol) { + return shouldIgnoreInImpl(symbol, true); + } - return super.shouldIgnore(symbol); + public boolean shouldIgnoreInImpl(String symbol, boolean checkEXT) { + return shouldIgnoreExtension(symbol, checkEXT) || super.shouldIgnoreInImpl(symbol); } /** shall the non unified (uniq) vendor extensions be dropped ? */ |