diff options
author | Sven Gothel <[email protected]> | 2008-07-06 05:40:40 +0000 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2008-07-06 05:40:40 +0000 |
commit | b43bba3824d2b4b2c981c2c4fd392c6f946b7709 (patch) | |
tree | dbbc0ed021e057080ae23c73bffe63c90678872a /src/java/com/sun/gluegen/opengl/GLConfiguration.java | |
parent | ce225f7d45db51518adf47576928dfacaa92d03c (diff) |
Add cfg option 'DropUniqVendorExtensions',
to drop all non unified vendor extensions and defines.
Example:
DropUniqVendorExtensions AMD
DropUniqVendorExtensions ATI
DropUniqVendorExtensions NV
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/gluegen/branches/JOGL_2_SANDBOX@99 a78bb65f-1512-4460-ba86-f6dc96a7bf27
Diffstat (limited to 'src/java/com/sun/gluegen/opengl/GLConfiguration.java')
-rwxr-xr-x | src/java/com/sun/gluegen/opengl/GLConfiguration.java | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/java/com/sun/gluegen/opengl/GLConfiguration.java b/src/java/com/sun/gluegen/opengl/GLConfiguration.java index c99f649..d9f35ba 100755 --- a/src/java/com/sun/gluegen/opengl/GLConfiguration.java +++ b/src/java/com/sun/gluegen/opengl/GLConfiguration.java @@ -53,7 +53,7 @@ public class GLConfiguration extends ProcAddressConfiguration { // Maps function names to the kind of buffer object it deals with private Map/*<String,GLEmitter.BufferObjectKind>*/ bufferObjectKinds = new HashMap(); private GLEmitter emitter; - private boolean dropUniqVendorExtensions = false; + private Set/*String*/ dropUniqVendorExtensions = new HashSet(); public GLConfiguration(GLEmitter emitter) { super(); @@ -82,7 +82,8 @@ public class GLConfiguration extends ProcAddressConfiguration { } else if (cmd.equalsIgnoreCase("DropUniqVendorExtensions")) { - dropUniqVendorExtensions = true; + String sym = readString("DropUniqVendorExtensions", tok, filename, lineNo); + dropUniqVendorExtensions.add(sym); } else { @@ -204,8 +205,9 @@ public class GLConfiguration extends ProcAddressConfiguration { return super.shouldIgnore(symbol); } - public boolean getDropUniqVendorExtensions() { - return dropUniqVendorExtensions; + /** shall the non unified (uniq) vendor extensions be dropped ? */ + public boolean getDropUniqVendorExtensions(String extName) { + return dropUniqVendorExtensions.contains(extName); } /** Returns the kind of buffer object this function deals with, or |