summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenneth Russel <[email protected]>2006-07-08 23:45:49 +0000
committerKenneth Russel <[email protected]>2006-07-08 23:45:49 +0000
commitf3d83a065e57365cfc99a6ed57362d35b10cd070 (patch)
tree8155012d65d88f28c5d8cab01042d58f8bcb588c /src
parentdef81ee489540046027b9150640a58fbbbfdd7aa (diff)
Fixed problem with glue code generation for outgoing void** arguments
pointed out by users Dj3hut1 and kicklee on JOGL forum in the context of glMultiDrawElements calls git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/gluegen/trunk@35 a78bb65f-1512-4460-ba86-f6dc96a7bf27
Diffstat (limited to 'src')
-rw-r--r--src/java/com/sun/gluegen/JavaMethodBindingEmitter.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/java/com/sun/gluegen/JavaMethodBindingEmitter.java b/src/java/com/sun/gluegen/JavaMethodBindingEmitter.java
index 87b9521..3cbafc0 100644
--- a/src/java/com/sun/gluegen/JavaMethodBindingEmitter.java
+++ b/src/java/com/sun/gluegen/JavaMethodBindingEmitter.java
@@ -223,6 +223,10 @@ public class JavaMethodBindingEmitter extends FunctionEmitter
// returned as e.g. ByteBuffer)
return "Object";
}
+ } else if (type.isNIOBufferArray()) {
+ // Arrays of direct Buffers sent down as Object[]
+ // (Note we don't yet support returning void**)
+ return "Object[]";
} else if (type.isCompoundTypeWrapper()) {
// Compound type wrappers are unwrapped to ByteBuffer
return "java.nio.ByteBuffer";