diff options
author | Kenneth Russel <[email protected]> | 2006-07-08 23:45:49 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2006-07-08 23:45:49 +0000 |
commit | f3d83a065e57365cfc99a6ed57362d35b10cd070 (patch) | |
tree | 8155012d65d88f28c5d8cab01042d58f8bcb588c /src/java/com/sun/gluegen | |
parent | def81ee489540046027b9150640a58fbbbfdd7aa (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/java/com/sun/gluegen')
-rw-r--r-- | src/java/com/sun/gluegen/JavaMethodBindingEmitter.java | 4 |
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"; |