View | Details | Raw Unified | Return to bug 1166
Collapse All | Expand All

(-)a/src/java/com/jogamp/gluegen/JavaEmitter.java (-1 / +2 lines)
Lines 2558-2564 public class JavaEmitter implements GlueEmitter { Link Here
2558
         "        (*env)->FatalError(env, \"initializeImpl() not called\");\n"+
2558
         "        (*env)->FatalError(env, \"initializeImpl() not called\");\n"+
2559
         "        return NULL;\n"+
2559
         "        return NULL;\n"+
2560
         "    }\n"+
2560
         "    }\n"+
2561
         "    jbyteBuffer  = (*env)->CallStaticObjectMethod(env, clazzBuffers, cstrBuffersNew, capacity);\n"+
2561
         "    jint intcapacity = capacity;\n" +
2562
         "    jbyteBuffer  = (*env)->CallStaticObjectMethod(env, clazzBuffers, cstrBuffersNew, intcapacity);\n"+
2562
         "    byteBufferPtr = (*env)->GetDirectBufferAddress(env, jbyteBuffer);\n"+
2563
         "    byteBufferPtr = (*env)->GetDirectBufferAddress(env, jbyteBuffer);\n"+
2563
         "    memcpy(byteBufferPtr, source_address, capacity);\n"+
2564
         "    memcpy(byteBufferPtr, source_address, capacity);\n"+
2564
         "    return jbyteBuffer;\n"+
2565
         "    return jbyteBuffer;\n"+

Return to bug 1166