diff options
author | Kenneth Russel <[email protected]> | 2008-12-14 01:57:13 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2008-12-14 01:57:13 +0000 |
commit | be28001c09aa922b0a7b07ebb51d50e8d41578c0 (patch) | |
tree | 5f332a8d642dee9343f4aaf5635f06637ebb1987 /src/java/com/sun/gluegen/MethodBinding.java | |
parent | 6b72c6747b4e57c3112f3a3ce5c2f17b57af3b6b (diff) |
Fixed code generation bug when a non-ByteBuffer type (e.g.,
LongBuffer) is returned from a native method, which was occurring with
glXChooseFBConfig with the new Opaque directive of GLXFBConfig to long
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/gluegen/branches/JOGL_2_SANDBOX@118 a78bb65f-1512-4460-ba86-f6dc96a7bf27
Diffstat (limited to 'src/java/com/sun/gluegen/MethodBinding.java')
-rw-r--r-- | src/java/com/sun/gluegen/MethodBinding.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/java/com/sun/gluegen/MethodBinding.java b/src/java/com/sun/gluegen/MethodBinding.java index 04b73e2..5431874 100644 --- a/src/java/com/sun/gluegen/MethodBinding.java +++ b/src/java/com/sun/gluegen/MethodBinding.java @@ -314,10 +314,11 @@ public class MethodBinding { signatureUsesCompoundTypeWrappers = true; } - if (javaReturnType.isNIOByteBuffer() || + if (javaReturnType.isNIOBuffer() || javaReturnType.isArrayOfCompoundTypeWrappers()) { - // Needs setting of byte order which can't be done easily from - // native code + // Needs setting of byte order and possibly viewing as a + // different buffer type which can't be done easily from native + // code signatureUsesNIO = true; } |