From 966153e376f9932cea29d8bd891a164115a4049c Mon Sep 17 00:00:00 2001 From: Michael Bien Date: Thu, 15 Apr 2010 02:47:09 +0200 Subject: fixed BufferOverflowException in CLKernel.getCompileWorkGroupSize(), buffer was to small. --- src/com/jogamp/opencl/CLKernel.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/com/jogamp/opencl') 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); -- cgit v1.2.3