aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/com/jogamp/gluegen/opengl/GLEmitter.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/GLEmitter.java
parent75614e19f48ecd7b919d5d9f447c647611246e8d (diff)
Bug 1144: Adapt to GlueGen commit 405512e1c8a2e24834b0d057f0b020b4a0f4c25b
Diffstat (limited to 'src/jogl/classes/com/jogamp/gluegen/opengl/GLEmitter.java')
-rw-r--r--src/jogl/classes/com/jogamp/gluegen/opengl/GLEmitter.java18
1 files changed, 16 insertions, 2 deletions
diff --git a/src/jogl/classes/com/jogamp/gluegen/opengl/GLEmitter.java b/src/jogl/classes/com/jogamp/gluegen/opengl/GLEmitter.java
index 388f06150..c0a527ad7 100644
--- a/src/jogl/classes/com/jogamp/gluegen/opengl/GLEmitter.java
+++ b/src/jogl/classes/com/jogamp/gluegen/opengl/GLEmitter.java
@@ -257,6 +257,20 @@ public class GLEmitter extends ProcAddressEmitter {
return new GLConfiguration(this);
}
+ /**
+ * {@inheritDoc}
+ * <p>
+ * Implementation sets the binding's native name to it's interface name,
+ * which is the final aliased shortest name.
+ * The latter is used for the proc-address-table etc ..
+ * </p>
+ */
+ @Override
+ protected void mangleBinding(final MethodBinding binding) {
+ binding.setNativeName(binding.getInterfaceName());
+ super.mangleBinding(binding);
+ }
+
/** In order to implement Buffer Object variants of certain
functions we generate another MethodBinding which maps the void*
argument to a Java long. The generation of emitters then takes
@@ -272,7 +286,7 @@ public class GLEmitter extends ProcAddressEmitter {
final GLConfiguration glConfig = getGLConfig();
final List<MethodBinding> bindings = super.expandMethodBinding(binding);
- if ( !glConfig.isBufferObjectFunction(binding.getName()) ) {
+ if ( !glConfig.isBufferObjectFunction(binding.getCSymbol()) ) {
return bindings;
}
final boolean bufferObjectOnly = glConfig.isBufferObjectOnly(binding.getName());
@@ -466,7 +480,7 @@ public class GLEmitter extends ProcAddressEmitter {
}
protected boolean needsBufferObjectVariant(final FunctionSymbol sym) {
- return getGLConfig().isBufferObjectFunction(sym.getName());
+ return getGLConfig().isBufferObjectFunction(sym);
}
protected GLConfiguration getGLConfig() {