aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/com/jogamp/gluegen/opengl/GLConfiguration.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2015-03-11 08:58:36 +0100
committerSven Gothel <[email protected]>2015-03-11 08:58:36 +0100
commitad50cb0572d410a04c09f362befdd7b824364940 (patch)
treefecf826f4f5f893f364fac1520a9078b50203444 /src/jogl/classes/com/jogamp/gluegen/opengl/GLConfiguration.java
parent75614e19f48ecd7b919d5d9f447c647611246e8d (diff)
Bug 1144: Adapt to GlueGen commit 405512e1c8a2e24834b0d057f0b020b4a0f4c25b
Diffstat (limited to 'src/jogl/classes/com/jogamp/gluegen/opengl/GLConfiguration.java')
-rw-r--r--src/jogl/classes/com/jogamp/gluegen/opengl/GLConfiguration.java16
1 files changed, 11 insertions, 5 deletions
diff --git a/src/jogl/classes/com/jogamp/gluegen/opengl/GLConfiguration.java b/src/jogl/classes/com/jogamp/gluegen/opengl/GLConfiguration.java
index 922a91531..878d7da37 100644
--- a/src/jogl/classes/com/jogamp/gluegen/opengl/GLConfiguration.java
+++ b/src/jogl/classes/com/jogamp/gluegen/opengl/GLConfiguration.java
@@ -177,7 +177,7 @@ public class GLConfiguration extends ProcAddressConfiguration {
public List<String> javaPrologueForMethod(final MethodBinding binding, final boolean forImplementingMethodCall, final boolean eraseBufferAndArrayTypes) {
List<String> res = super.javaPrologueForMethod(binding, forImplementingMethodCall, eraseBufferAndArrayTypes);
- final GLEmitter.BufferObjectKind kind = getBufferObjectKind(binding.getName());
+ final GLEmitter.BufferObjectKind kind = getBufferObjectKind(binding.getCSymbol());
if (kind != null) {
// Need to generate appropriate prologue based on both buffer
// object kind and whether this variant of the MethodBinding
@@ -382,12 +382,18 @@ public class GLConfiguration extends ProcAddressConfiguration {
/** Returns the kind of buffer object this function deals with, or
null if none. */
- GLEmitter.BufferObjectKind getBufferObjectKind(final String name) {
- return bufferObjectKinds.get(name);
+ GLEmitter.BufferObjectKind getBufferObjectKind(final AliasedSymbol symbol) {
+ final String name = symbol.getName();
+ final Set<String> aliases = symbol.getAliasedNames();
+ GLEmitter.BufferObjectKind res = bufferObjectKinds.get( name );
+ if( null == res ) {
+ res = oneInMap(bufferObjectKinds, aliases);
+ }
+ return res;
}
- public boolean isBufferObjectFunction(final String name) {
- return (getBufferObjectKind(name) != null);
+ public boolean isBufferObjectFunction(final AliasedSymbol symbol) {
+ return null != getBufferObjectKind(symbol);
}
public boolean isBufferObjectOnly(final String name) {