From 503f38b03f6fabcba6e3c3c573eec949966b86ca Mon Sep 17 00:00:00 2001 From: Michael Bien Date: Wed, 12 May 2010 17:17:44 +0200 Subject: status should be an direct buffer. --- src/com/jogamp/opencl/CLContext.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/com/jogamp/opencl/CLContext.java b/src/com/jogamp/opencl/CLContext.java index c904a37c..b200e3a5 100644 --- a/src/com/jogamp/opencl/CLContext.java +++ b/src/com/jogamp/opencl/CLContext.java @@ -159,7 +159,7 @@ public class CLContext extends CLObject implements CLResource { protected static long createContextFromType(CLErrorHandler handler, PointerBuffer properties, long deviceType) { - IntBuffer status = IntBuffer.allocate(1); + IntBuffer status = newDirectIntBuffer(1); long context = CLPlatform.getLowLevelCLInterface().clCreateContextFromType(properties, deviceType, handler, status); checkForError(status.get(), "can not create CL context"); -- cgit v1.2.3