diff options
author | Sven Gothel <[email protected]> | 2010-05-13 22:50:05 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2010-05-13 22:50:05 +0200 |
commit | 17a620f17f65e8581f1a04f5d2825c24a87678b8 (patch) | |
tree | fa01b1e7f46ec2b9d3fa16b6dd26b63445b4dba6 /src/com/jogamp/opencl | |
parent | 4bbfd2d4e1544a120facae7e7d8f0e2322c1618f (diff) | |
parent | 6f0a2ffd21d178167dd8e7db3c14da94a2d91f7e (diff) |
Merge branch 'master' of git://github.com/mbien/jocl
Diffstat (limited to 'src/com/jogamp/opencl')
-rw-r--r-- | src/com/jogamp/opencl/CLContext.java | 2 |
1 files changed, 1 insertions, 1 deletions
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"); |