diff options
author | Michael Bien <[email protected]> | 2010-01-21 14:11:39 +0100 |
---|---|---|
committer | Michael Bien <[email protected]> | 2010-01-21 14:11:39 +0100 |
commit | 96251f7aa2770d2d8278afbd6e4b603c24932049 (patch) | |
tree | 9e650b567654215393dd2622cfa59febe68c928d /src/com/mbien/opencl/CLBuffer.java | |
parent | 7a009264d53a4f9bc02fc01ea3cb12ef6cf432fe (diff) |
more device properties.
Diffstat (limited to 'src/com/mbien/opencl/CLBuffer.java')
-rw-r--r-- | src/com/mbien/opencl/CLBuffer.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/mbien/opencl/CLBuffer.java b/src/com/mbien/opencl/CLBuffer.java index 618cfa96..e42b9064 100644 --- a/src/com/mbien/opencl/CLBuffer.java +++ b/src/com/mbien/opencl/CLBuffer.java @@ -21,7 +21,7 @@ public final class CLBuffer<B extends Buffer> extends CLMemory<B> { static <B extends Buffer> CLBuffer<B> create(CLContext context, B directBuffer, int flags, int glBuffer) { - if(!directBuffer.isDirect()) + if(directBuffer != null && !directBuffer.isDirect()) throw new IllegalArgumentException("buffer is not a direct buffer"); CL cl = context.cl; |