summaryrefslogtreecommitdiffstats
path: root/src/com/jogamp/opencl
diff options
context:
space:
mode:
authorMichael Bien <[email protected]>2010-04-15 02:47:09 +0200
committerMichael Bien <[email protected]>2010-04-15 02:47:09 +0200
commit966153e376f9932cea29d8bd891a164115a4049c (patch)
tree9687825705977f34e9266381ccf7a2800b8e7ef3 /src/com/jogamp/opencl
parent39b727b0dd7bbbdee9c49ea0abfcaeb411d1866c (diff)
fixed BufferOverflowException in CLKernel.getCompileWorkGroupSize(), buffer was to small.
Diffstat (limited to 'src/com/jogamp/opencl')
-rw-r--r--src/com/jogamp/opencl/CLKernel.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/jogamp/opencl/CLKernel.java b/src/com/jogamp/opencl/CLKernel.java
index ca7f6786..6fc20f56 100644
--- a/src/com/jogamp/opencl/CLKernel.java
+++ b/src/com/jogamp/opencl/CLKernel.java
@@ -37,7 +37,7 @@ public class CLKernel extends CLObject implements CLResource, Cloneable {
CLKernel(CLProgram program, long id) {
super(program.getContext(), id);
this.program = program;
- this.buffer = Buffers.newDirectByteBuffer(8);
+ this.buffer = Buffers.newDirectByteBuffer(8*3);
Int64Buffer size = Int64Buffer.allocateDirect(1);