summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMichael Bien <[email protected]>2010-05-12 17:17:44 +0200
committerMichael Bien <[email protected]>2010-05-12 17:17:44 +0200
commit503f38b03f6fabcba6e3c3c573eec949966b86ca (patch)
tree0f694a2204c0fb43ecb330f91b116641388267aa /src
parent8a7c4ac5cea58cad873e4ec4e429c84649e09995 (diff)
status should be an direct buffer.
Diffstat (limited to 'src')
-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");