summaryrefslogtreecommitdiffstats
path: root/src/com/jogamp/opencl
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2010-05-13 22:50:05 +0200
committerSven Gothel <[email protected]>2010-05-13 22:50:05 +0200
commit17a620f17f65e8581f1a04f5d2825c24a87678b8 (patch)
treefa01b1e7f46ec2b9d3fa16b6dd26b63445b4dba6 /src/com/jogamp/opencl
parent4bbfd2d4e1544a120facae7e7d8f0e2322c1618f (diff)
parent6f0a2ffd21d178167dd8e7db3c14da94a2d91f7e (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.java2
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");